Method Summary |
|
public static ColorModel | coerceColorModel(ColorModel cm, boolean newAlphaPreMult) Create a new ColorModel with it's alpha premultiplied state matching
newAlphaPreMult.
Parameters: cm - The ColorModel to change the alpha premult state of. Parameters: newAlphaPreMult - The new state of alpha premult. |
public static ColorModel | coerceData(WritableRaster wr, ColorModel cm, boolean newAlphaPreMult) Coerces data within a bufferedImage to match newAlphaPreMult,
Note that this can not change the colormodel of bi so you
Parameters: wr - The raster to change the state of. Parameters: cm - The colormodel currently associated with data in wr. Parameters: newAlphaPreMult - The desired state of alpha Premult for raster. |
public static void | divideAlpha(WritableRaster wr) |
protected static void | divide_BYTE_COMP_Data(WritableRaster wr) |
protected static void | divide_INT_PACK_Data(WritableRaster wr) |
public static boolean | is_BYTE_COMP_Data(SampleModel sm) |
public static boolean | is_INT_PACK_Data(SampleModel sm, boolean requireAlpha) |
protected static void | mult_BYTE_COMP_Data(WritableRaster wr) |
protected static void | mult_INT_PACK_Data(WritableRaster wr) |
public static void | multiplyAlpha(WritableRaster wr) |