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
.
|
|
|
|