DirectColorModel Members

DirectColorModel Members

Class Overview | This Package | All Packages

Constructors
Name Description
DirectColorModel(int, int, int, int) Constructs a DirectColorModel from the given masks specifying which bits in the pixel contain the red, green and blue color components.
DirectColorModel(int, int, int, int, int) Constructs a DirectColorModel from the given masks specifying which bits in the pixel contain the alhpa, red, green and blue color components.

Methods
Name Description
getAlpha(int) Return the alpha transparency value for the specified pixel in the range 0-255.
getAlphaMask() Returns the mask indicating which bits in a pixel contain the alpha transparency component.
getBlue(int) Returns the blue color compoment for the specified pixel in the range 0-255.
getBlueMask() Returns the mask indicating which bits in a pixel contain the blue color component.
getGreen(int) Returns the green color compoment for the specified pixel in the range 0-255.
getGreenMask() Returns the mask indicating which bits in a pixel contain the green color component.
getRed(int) Returns the red color compoment for the specified pixel in the range 0-255.
getRedMask() Returns the mask indicating which bits in a pixel contain the red color component.
getRGB(int) Returns the color of the pixel in the default RGB color model.