public final class DiscreteAlphaIndexColorModel
extends java.awt.image.ColorModel
IndexColorModel and a ComponentColorModel,
having both a color map and a full, discrete alpha channel.
The color map entries are assumed to be fully opaque and should have no transparent index.
ColorSpace will always be the default sRGB color space (as with IndexColorModel).
Component order is always P, A, where P is a palette index, and A is the alpha value.
IndexColorModel,
ComponentColorModel| Constructor and Description |
|---|
DiscreteAlphaIndexColorModel(java.awt.image.IndexColorModel icm)
Creates a
DiscreteAlphaIndexColorModel, delegating color map look-ups
to the given IndexColorModel. |
| Modifier and Type | Method and Description |
|---|---|
java.awt.image.SampleModel |
createCompatibleSampleModel(int w,
int h) |
java.awt.image.WritableRaster |
createCompatibleWritableRaster(int w,
int h) |
int |
getAlpha(int pixel) |
int |
getAlpha(java.lang.Object inData) |
int |
getBlue(int pixel) |
int |
getBlue(java.lang.Object inData) |
int |
getGreen(int pixel) |
int |
getGreen(java.lang.Object inData) |
int |
getRed(int pixel) |
int |
getRed(java.lang.Object inData) |
boolean |
isCompatibleRaster(java.awt.image.Raster raster) |
boolean |
isCompatibleSampleModel(java.awt.image.SampleModel sm) |
java.lang.String |
toString() |
coerceData, equals, finalize, getAlphaRaster, getColorSpace, getComponents, getComponents, getComponentSize, getComponentSize, getDataElement, getDataElement, getDataElements, getDataElements, getDataElements, getNormalizedComponents, getNormalizedComponents, getNumColorComponents, getNumComponents, getPixelSize, getRGB, getRGB, getRGBdefault, getTransferType, getTransparency, getUnnormalizedComponents, hasAlpha, hashCode, isAlphaPremultipliedpublic DiscreteAlphaIndexColorModel(java.awt.image.IndexColorModel icm)
DiscreteAlphaIndexColorModel, delegating color map look-ups
to the given IndexColorModel.icm - The IndexColorModel delegate. Color map entries are assumed to be
fully opaque, any transparency or transparent index will be ignored.public final int getRed(int pixel)
getRed in class java.awt.image.ColorModelpublic final int getGreen(int pixel)
getGreen in class java.awt.image.ColorModelpublic final int getBlue(int pixel)
getBlue in class java.awt.image.ColorModelpublic final int getAlpha(int pixel)
getAlpha in class java.awt.image.ColorModelpublic final int getRed(java.lang.Object inData)
getRed in class java.awt.image.ColorModelpublic final int getGreen(java.lang.Object inData)
getGreen in class java.awt.image.ColorModelpublic final int getBlue(java.lang.Object inData)
getBlue in class java.awt.image.ColorModelpublic final int getAlpha(java.lang.Object inData)
getAlpha in class java.awt.image.ColorModelpublic final java.awt.image.SampleModel createCompatibleSampleModel(int w,
int h)
createCompatibleSampleModel in class java.awt.image.ColorModelpublic final boolean isCompatibleSampleModel(java.awt.image.SampleModel sm)
isCompatibleSampleModel in class java.awt.image.ColorModelpublic final java.awt.image.WritableRaster createCompatibleWritableRaster(int w,
int h)
createCompatibleWritableRaster in class java.awt.image.ColorModelpublic final boolean isCompatibleRaster(java.awt.image.Raster raster)
isCompatibleRaster in class java.awt.image.ColorModelpublic java.lang.String toString()
toString in class java.awt.image.ColorModelCopyright © 2018. All Rights Reserved.