java.awt.image.RGBImageFilter (JDK 1.0)
This abstract class is an ImageFilter that provides an easy way to implement filters that modify the colors of an image. To create a color filter that modifies the colors of an image, you should subclass RGBImageFilter and provide a definition of filterRGB() that converts the input pixel value (in the default RGB color model) to an output value. If the conversion does not depend on the location of the pixel, set the canFilterIndexColorModel variable to true so that the RGBImageFilter can save time by filtering the colormap of an image that uses an IndexColorModel instead of filtering each pixel of the image.
public abstract classRGBImageFilterextends ImageFilter { //Default Constructor: public RGBImageFilter()//Protected Instance Variablesprotected booleancanFilterIndexColorModel; protected ColorModelnewmodel; protected ColorModelorigmodel; //Public Instance Methodspublic IndexColorModelfilterIndexColorModel(IndexColorModelicm); public abstract intfilterRGB(intx, inty, intrgb); public voidfilterRGBPixels(intx, inty, intw, inth, int[]pixels, intoff, intscansize); public voidsetColorModel(ColorModelmodel); //Overrides ImageFilterpublic voidsetPixels(intx, inty, intw, inth, ColorModelmodel, public voidsetPixels'u'byte[]pixels, intoff, intscansize); //Overrides ImageFilterpublic voidsetPixels(intx, inty, intw, inth, ColorModelmodel, public voidsetPixels'u'int[]pixels, intoff, intscansize); //Overrides ImageFilterpublic voidsubstituteColorModel(ColorModeloldcm, ColorModelnewcm); }
Hierarchy:
Object->ImageFilter(ImageConsumer, Cloneable)->RGBImageFilter