isAlphaPremultiplied
variable. It may multiply or divide the color raster data by alpha, or do nothing if the data is in the correct state.
@param isAlphaPremultiplied true
if the alpha has beenpremultiplied; false
otherwise.
isAlphaPremultiplied
variable, assuming the data is currently correctly described by this ColorModel
. It may multiply or divide the color raster data by alpha, or do nothing if the data is in the correct state. If the data needs to be coerced, this method also returns an instance of this ColorModel
with the isAlphaPremultiplied
flag set appropriately. Since ColorModel
can be subclassed, subclasses inherit the implementation of this method and if they don't override it then they throw an exception if they use an unsupported transferType
.
@throws NullPointerException if raster
is null
and data coercion is required.
@throws UnsupportedOperationException if the transfer type of this ComponentColorModel
is not one of the supported transfer types: DataBuffer.TYPE_BYTE
, DataBuffer.TYPE_USHORT
, DataBuffer.TYPE_INT
, DataBuffer.TYPE_SHORT
, DataBuffer.TYPE_FLOAT
, or DataBuffer.TYPE_DOUBLE
.
isAlphaPremultiplied
variable, assuming the data is currently correctly described by this ColorModel
. It may multiply or divide the color raster data by alpha, or do nothing if the data is in the correct state. If the data needs to be coerced, this method will also return an instance of this ColorModel
with the isAlphaPremultiplied
flag set appropriately. This method will throw a UnsupportedOperationException
if this transferType is not supported by this ColorModel
. Since ColorModel
can be subclassed, subclasses inherit the implementation of this method and if they don't override it then they throw an exception if they use an unsupported transferType.
@param raster the WritableRaster
data
@param isAlphaPremultiplied true
if the alpha ispremultiplied; false
otherwise
@return a ColorModel
object that represents thecoerced data.
@exception UnsupportedOperationException if this transferType
is not supported by this color model
|
|
|
|
|
|
|
|
|
|