Example usage for Java java.awt.image ColorModel fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | isAlphaPremultiplied |
ColorModel | coerceData(WritableRaster raster, boolean isAlphaPremultiplied) Forces the raster data to match the state specified in the isAlphaPremultiplied variable, assuming the data is currently correctly described by this ColorModel . |
SampleModel | createCompatibleSampleModel(int w, int h) Creates a SampleModel with the specified width and height that has a data layout compatible with this ColorModel . |
WritableRaster | createCompatibleWritableRaster(int w, int h) Creates a WritableRaster with the specified width and height that has a data layout ( SampleModel ) compatible with this ColorModel . |
int | getAlpha(int pixel) Returns the alpha component for the specified pixel, scaled from 0 to 255. |
int | getAlpha(Object inData) Returns the alpha component for the specified pixel, scaled from 0 to 255. |
int | getBlue(int pixel) Returns the blue color component for the specified pixel, scaled from 0 to 255 in the default RGB ColorSpace, sRGB. |
int | getBlue(Object inData) Returns the blue color component for the specified pixel, scaled from 0 to 255 in the default RGB ColorSpace , sRGB. |
Class> | getClass() Returns the runtime class of this Object . |
ColorSpace | getColorSpace() Returns the ColorSpace associated with this ColorModel . |
int[] | getComponents(int pixel, int[] components, int offset) Returns an array of unnormalized color/alpha components given a pixel in this ColorModel . |
int[] | getComponents(Object pixel, int[] components, int offset) Returns an array of unnormalized color/alpha components given a pixel in this ColorModel . |
int[] | getComponentSize() Returns an array of the number of bits per color/alpha component. |
int | getComponentSize(int componentIdx) Returns the number of bits for the specified color/alpha component. |
Object | getDataElements(int rgb, Object pixel) Returns a data element array representation of a pixel in this ColorModel , given an integer pixel representation in the default RGB color model. |
Object | getDataElements(int[] components, int offset, Object obj) Returns a data element array representation of a pixel in this ColorModel , given an array of unnormalized color/alpha components. |
Object | getDataElements(float[] normComponents, int normOffset, Object obj) Returns a data element array representation of a pixel in this ColorModel , given an array of normalized color/alpha components. |
int | getGreen(int pixel) Returns the green color component for the specified pixel, scaled from 0 to 255 in the default RGB ColorSpace, sRGB. |
int | getGreen(Object inData) Returns the green color component for the specified pixel, scaled from 0 to 255 in the default RGB ColorSpace , sRGB. |
float[] | getNormalizedComponents(int[] components, int offset, float[] normComponents, int normOffset) Returns an array of all of the color/alpha components in normalized form, given an unnormalized component array. |
int | getNumColorComponents() Returns the number of color components in this ColorModel . |
int | getNumComponents() Returns the number of components, including alpha, in this ColorModel . |
int | getPixelSize() Returns the number of bits per pixel described by this ColorModel . |
int | getRed(int pixel) Returns the red color component for the specified pixel, scaled from 0 to 255 in the default RGB ColorSpace, sRGB. |
int | getRed(Object inData) Returns the red color component for the specified pixel, scaled from 0 to 255 in the default RGB ColorSpace , sRGB. |
int | getRGB(int pixel) Returns the color/alpha components of the pixel in the default RGB color model format. |
int | getRGB(Object inData) Returns the color/alpha components for the specified pixel in the default RGB color model format. |
ColorModel | getRGBdefault() Returns a DirectColorModel that describes the default format for integer RGB values used in many of the methods in the AWT image interfaces for the convenience of the programmer. |
int | getTransferType() Returns the transfer type of this ColorModel . |
int | getTransparency() Returns the transparency. |
int[] | getUnnormalizedComponents(float[] normComponents, int normOffset, int[] components, int offset) Returns an array of all of the color/alpha components in unnormalized form, given a normalized component array. |
boolean | hasAlpha() Returns whether or not alpha is supported in this ColorModel . |
String | toString() Returns the String representation of the contents of this ColorModel object. |