java.awt.image.DirectColorModel (JDK 1.0)
This class is a ColorModel that extracts the red, green, blue, and alpha values directly from the bits of the pixel. The arguments to the constructor methods specify the number of significant bits in the pixel and the mask used to extract each of the color components from the pixel. The default RGB color model is a DirectColorModel.
You should not need to instantiate any kind of ColorModel object unless you are processing image data that does not use the standard RGB color format.
public classDirectColorModelextends ColorModel { //Public ConstructorspublicDirectColorModel(intbits, intrmask, intgmask, intbmask); publicDirectColorModel(intbits, intrmask, intgmask, intbmask, intamask); //Public Instance Methodspublic final intgetAlpha(intpixel); //Defines ColorModelpublic final intgetAlphaMask(); public final intgetBlue(intpixel); //Defines ColorModelpublic final intgetBlueMask(); public final intgetGreen(intpixel); //Defines ColorModelpublic final intgetGreenMask(); public final intgetRGB(intpixel); //Overrides ColorModelpublic final intgetRed(intpixel); //Defines ColorModelpublic final intgetRedMask(); }
Hierarchy:
Object->ColorModel->DirectColorModel