Share via


IndexColorModel Members

Class Overview | This Package | All Packages

Constructors

Name Description
IndexColorModel(int, int, byte[], byte[], byte[]) Constructs an IndexColorModel from the given arrays of red, green, and blue components.
IndexColorModel(int, int, byte[], byte[], byte[], byte[]) Constructs an IndexColorModel from the given arrays of red, green, blue and alpha components.
IndexColorModel(int, int, byte[], byte[], byte[], int) Constructs an IndexColorModel from the given arrays of red, green, and blue components.
IndexColorModel(int, int, byte[], int, boolean) Constructs an IndexColorModel from a single arrays of packed red, green, blue and optional alpha components.
IndexColorModel(int, int, byte[], int, boolean, int) Constructs an IndexColorModel from a single arrays of packed red, green, blue and optional alpha components.

Methods

Name Description
getAlpha(int) Returns the alpha transparency value for the specified pixel in the range 0-255.
getAlphas(byte[]) Copies the array of alpha transparency values into the given array.
getBlue(int) Returns the blue color compoment for the specified pixel in the range 0-255.
getBlues(byte[]) Copies the array of blue color components into the given array.
getGreen(int) Returns the green color compoment for the specified pixel in the range 0-255.
getGreens(byte[]) Copies the array of green color components into the given array.
getMapSize() Returns the size of the color component arrays in this IndexColorModel.
getRed(int) Returns the red color compoment for the specified pixel in the range 0-255.
getReds(byte[]) Copies the array of red color components into the given array.
getRGB(int) Returns the color of the pixel in the default RGB color model.
getTransparentPixel() Returns the index of the transparent pixel in this IndexColorModel or -1 if there is no transparent pixel.