Example usage for Java java.awt.image DirectColorModel fields, constructors, methods, implement or subclass
The text is from its open source code.
DirectColorModel(int bits, int rmask, int gmask, int bmask) Constructs a DirectColorModel from the specified masks that indicate which bits in an int pixel representation contain the red, green and blue color samples. | |
DirectColorModel(int bits, int rmask, int gmask, int bmask, int amask) Constructs a DirectColorModel from the specified masks that indicate which bits in an int pixel representation contain the red, green and blue color samples and the alpha sample, if present. |
SampleModel | createCompatibleSampleModel(int w, int h) Creates a SampleModel with the specified width and height that has a data layout 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 | getAlphaMask() Returns the mask indicating which bits in an int pixel representation contain the alpha component. |
int | getBlueMask() Returns the mask indicating which bits in an int pixel representation contain the blue color component. |
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 | getDataElement(int[] components, int offset) Returns a pixel value represented as an int in this ColorModel , given an array of unnormalized color/alpha components. |
int | getGreenMask() Returns the mask indicating which bits in an int pixel representation contain the green color component. |
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 | getRedMask() Returns the mask indicating which bits in an int pixel representation contain the red color component. |
boolean | hasAlpha() Returns whether or not alpha is supported in this ColorModel . |