Example usage for Java java.awt.image IndexColorModel fields, constructors, methods, implement or subclass
The text is from its open source code.
IndexColorModel(int bits, int size, byte[] r, byte[] g, byte[] b) Constructs an IndexColorModel from the specified arrays of red, green, and blue components. | |
IndexColorModel(int bits, int size, byte[] cmap, int start, boolean hasalpha) Constructs an IndexColorModel from a single array of interleaved red, green, blue and optional alpha components. | |
IndexColorModel(int bits, int size, byte[] r, byte[] g, byte[] b, int trans) Constructs an IndexColorModel from the given arrays of red, green, and blue components. | |
IndexColorModel(int bits, int size, byte[] r, byte[] g, byte[] b, byte[] a) Constructs an IndexColorModel from the given arrays of red, green, blue and alpha components. | |
IndexColorModel(int bits, int size, byte[] cmap, int start, boolean hasalpha, int trans) Constructs an IndexColorModel from a single array of interleaved red, green, blue and optional alpha components. | |
IndexColorModel(int bits, int size, int[] cmap, int start, int transferType, BigInteger validBits) Constructs an IndexColorModel from an int array where each int is comprised of red, green, blue, and alpha components in the default RGB color model format. | |
IndexColorModel(int bits, int size, int[] cmap, int start, boolean hasalpha, int trans, int transferType) Constructs an IndexColorModel from an array of ints where each int is comprised of red, green, blue, and optional alpha components in the default RGB color model format. |
void | getAlphas(byte[] a) Copies the array of alpha transparency components into the specified array. |
int | getBlue(int pixel) Returns the blue color component for the specified pixel, scaled from 0 to 255 in the default RGB ColorSpace, sRGB. |
void | getBlues(byte[] b) Copies the array of blue color components into the specified array. |
ColorSpace | getColorSpace() Returns the ColorSpace associated with this ColorModel . |
int | getComponentSize(int componentIdx) Returns the number of bits for the specified color/alpha component. |
int | getGreen(int pixel) Returns the green color component for the specified pixel, scaled from 0 to 255 in the default RGB ColorSpace, sRGB. |
void | getGreens(byte[] g) Copies the array of green color components into the specified array. |
int | getMapSize() Returns the size of the color/alpha component arrays in this IndexColorModel . |
int | getNumColorComponents() Returns the number of color components 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. |
void | getReds(byte[] r) Copies the array of red color components into the specified array. |
int | getRGB(int pixel) Returns the color/alpha components of the pixel in the default RGB color model format. |
void | getRGBs(int[] rgb) Converts data for each index from the color and alpha component arrays to an int in the default RGB ColorModel format and copies the resulting 32-bit ARGB values into the specified array. |
int | getTransferType() Returns the transfer type of this ColorModel . |
int | getTransparency() Returns the transparency. |
int | getTransparentPixel() Returns the index of a transparent pixel in this IndexColorModel or -1 if there is no pixel with an alpha value of 0. |
boolean | hasAlpha() Returns whether or not alpha is supported in this ColorModel . |