ColorModelNameColorModel
DescriptionThe abstract ColorModel class defines the way a Java program represents colors. It provides methods for extracting different color components from a pixel. Class Definition
public class java.awt.image.ColorModel extends java.lang.Object { // Variables protected int pixel_bits; // Constructors public ColorModel (int bits); // Class Methods public static ColorModel getRGBdefault(); // Instance Methods public void finalize(); public abstract int getAlpha (int pixel); public abstract int getBlue (int pixel); public abstract int getGreen (int pixel); public int getPixelSize(); public abstract int getRed (int pixel); public int getRGB (int pixel); } ProtectedVariablespixel_bitsprotected int pixel_bitsThe pixel_bits variable saves the ColorModel's bits setting (the total number of bits per pixel). ConstructorsColorModelpublic ColorModel (int bits)
Class MethodsgetRGBdefaultpublic static ColorModel getRGBdefault()
Instance Methodsfinalizepublic void finalize()
getAlphapublic abstract int getAlpha (int pixel)
getBluepublic abstract int getBlue (int pixel)
getGreenpublic abstract int getGreen (int pixel)
getPixelSizepublic int getPixelSize()
getRedpublic abstract int getRed (int pixel)
getRGBpublic int getRGB (int pixel)
See AlsoDirectColorModel, IndexColorModel, Object |
|