WritableRaster
with the specified width and height that has a data layout (SampleModel
) compatible with this ColorModel
. Since ColorModel
is an abstract class, any instance is an instance of a subclass. Subclasses must override this method since the implementation in this abstract class throws an UnsupportedOperationException
.
@param w the width to apply to the new WritableRaster
@param h the height to apply to the new WritableRaster
@return a WritableRaster
object with the specifiedwidth and height.
@throws UnsupportedOperationException if thismethod is not supported by this ColorModel
@see WritableRaster
@see SampleModel
WritableRaster
with the same samplemodel and a new data buffer.
WritableRaster
with the specified width and height that has a data layout (SampleModel
) compatible with this ColorModel
. Since ColorModel
is an abstract class, any instance is an instance of a subclass. Subclasses must override this method since the implementation in this abstract class throws an UnsupportedOperationException
.
@param w the width to apply to the new WritableRaster
@param h the height to apply to the new WritableRaster
@return a WritableRaster
object with the specifiedwidth and height.
@throws UnsupportedOperationException if thismethod is not supported by this ColorModel
@see WritableRaster
@see SampleModel
WritableRaster
with the specified width and height, that has a data layout (SampleModel
) compatible with this ColorModel
.
@param w The width of the WritableRaster
you want to create.
@param h The height of the WritableRaster
you want to create.
@return A WritableRaster
that is compatible with this ColorModel
.
@see WritableRaster
@see SampleModel
WritableRaster
with the specified width and height that has a data layout (SampleModel
) compatible with this ColorModel
.
@param w the width to apply to the new WritableRaster
@param h the height to apply to the new WritableRaster
@return a WritableRaster
object with the specifiedwidth and height.
@throws IllegalArgumentException if w
or h
is less than or equal to zero
@see WritableRaster
@see SampleModel
WritableRaster
with the specified width and height that has a data layout (SampleModel
) compatible with this ColorModel
. This method only works for color models with 16 or fewer bits per pixel. Since IndexColorModel
can be subclassed, any subclass that supports greater than 16 bits per pixel must override this method.
@param w the width to apply to the new WritableRaster
@param h the height to apply to the new WritableRaster
@return a WritableRaster
object with the specifiedwidth and height.
@throws UnsupportedOperationException if the number of bits in apixel is greater than 16
@see WritableRaster
@see SampleModel
WritableRaster
with the same samplemodel and a new data buffer.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|