Java in a Nutshell Online Quick Reference for Java 1.1

CLASS java.awt.image.IndexColorModel

Availability: JDK 1.0

public class IndexColorModel extends ColorModel {
   // Public Constructors
      public IndexColorModel(int bits, int size, byte[] r, byte[] g, byte[] b);
      public IndexColorModel(int bits, int size, byte[] r, byte[] g, byte[] b, int trans);
      public IndexColorModel(int bits, int size, byte[] r, byte[] g, byte[] b, byte[] a);
      public IndexColorModel(int bits, int size, byte[] cmap, int start, boolean hasalpha);
      public IndexColorModel(int bits, int size, byte[] cmap, int start, boolean hasalpha, int trans);
   // Public Instance Methods
      public final int getAlpha(int pixel);  // Defines ColorModel.getAlpha()
      public final void getAlphas(byte[] a);
      public final int getBlue(int pixel);  // Defines ColorModel.getBlue()
      public final void getBlues(byte[] b);
      public final int getGreen(int pixel);  // Defines ColorModel.getGreen()
      public final void getGreens(byte[] g);
      public final int getMapSize();
      public final int getRGB(int pixel);  // Overrides ColorModel.getRGB()
      public final int getRed(int pixel);  // Defines ColorModel.getRed()
      public final void getReds(byte[] r);
      public final int getTransparentPixel();
}
Passed To:
RGBImageFilter.filterIndexColorModel().
Returned By:
RGBImageFilter.filterIndexColorModel().

Java in a Nutshell Online Quick Reference for Java 1.1
Created by David Flanagan. Copyright © 1997 by O'Reilly & Associates.