RGBImageFilter Members

RGBImageFilter Members

Class Overview | This Package | All Packages

Fields
Name Description
canFilterIndexColorModel This boolean indicates whether or not it is acceptable to apply the color filtering of the filterRGB method to the color table entries of an IndexColorModel object in lieu of pixel by pixel filtering.
newmodel  
origmodel  

Constructors
Name Description
RGBImageFilter()  

Methods
Name Description
filterIndexColorModel(IndexColorModel) Filters an IndexColorModel object by running each entry in its color tables through the filterRGB function that RGBImageFilter subclasses must provide.
filterRGB(int, int, int) Subclasses must specify a method to convert a single input pixel in the default RGB ColorModel to a single output pixel.
filterRGBPixels(int, int, int, int, int[], int, int) Filters a buffer of pixels in the default RGB ColorModel by passing them one by one through the filterRGB method.
setColorModel(ColorModel) If the ColorModel is an IndexColorModel, and the subclass has set the canFilterIndexColorModel flag to true, we substitute a filtered version of the color model here and wherever that original ColorModel object appears in the setPixels methods.
setPixels(int, int, int, int, ColorModel, byte[], int, int) If the ColorModel object is the same one that has already been converted, then simply passes the pixels through with the converted ColorModel.
setPixels(int, int, int, int, ColorModel, int[], int, int) If the ColorModel object is the same one that has already been converted, then simply passes the pixels through with the converted ColorModel, otherwise converts the buffer of integer pixels to the default RGB ColorModel and passes the converted buffer to the filterRGBPixels method to be converted one by one.
substituteColorModel(ColorModel, ColorModel) Registers two ColorModel objects for substitution.