API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt.image. RGBImageFilter View Source
Author(s)
Jim Graham
Since
Version
1.26 02/14/06
Serial
Hierarchy
 Object
      ImageFilter
          RGBImageFilter
Implements
Subclasses
Description
publicabstract abstract class RGBImageFilter
  This class provides an easy way to create an ImageFilter which modifies the pixels of an image in the default RGB ColorModel.
Constructors
public RGBImageFilter ()
Methods
Hide/Show inherited methods
public Object clone () [Inherited From ImageFilter]
Clones this object.
public IndexColorModel filterIndexColorModel (IndexColorModel icm)
  Filters an IndexColorModel object by running each entry in its color tables through the filterRGB function that RGBImageFilter subclasses must provide.
publicabstract int filterRGB (int x, int y, int rgb)
  Subclasses must specify a method to convert a single input pixel in the default RGB ColorModel to a single output pixel.
public void filterRGBPixels (int x, int y, int w, int h, int[] pixels, int off, int scansize)
  Filters a buffer of pixels in the default RGB ColorModel by passing them one by one through the filterRGB method.
public ImageFilter getFilterInstance (ImageConsumer ic) [Inherited From ImageFilter]
  Returns a unique instance of an ImageFilter object which will actually perform the filtering for the specified ImageConsumer.
public void imageComplete (int status) [Inherited From ImageFilter]
  Filters the information provided in the imageComplete method of the ImageConsumer interface.
public void resendTopDownLeftRight (ImageProducer ip) [Inherited From ImageFilter]
  Responds to a request for a TopDownLeftRight (TDLR) ordered resend of the pixel data from an ImageConsumer.
public void setColorModel (ColorModel model) [Overrides ImageFilter]
  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.
public void setDimensions (int width, int height) [Inherited From ImageFilter]
  Filters the information provided in the setDimensions method of the ImageConsumer interface.
public void setHints (int hints) [Inherited From ImageFilter]
  Filters the information provided in the setHints method of the ImageConsumer interface.
public void setPixels (int x, int y, int w, int h, ColorModel model, byte[] pixels, int off, int scansize) [Overrides ImageFilter]
  If the ColorModel object is the same one that has already been converted, then simply passes the pixels through with the converted ColorModel.
public void setPixels (int x, int y, int w, int h, ColorModel model, int[] pixels, int off, int scansize) [Overrides ImageFilter]
  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.
public void setProperties (Hashtable<Object, Object> props) [Inherited From ImageFilter]
  Passes the properties from the source object along after adding a property indicating the stream of filters it has been run through.
public void substituteColorModel (ColorModel oldcm, ColorModel newcm)
  Registers two ColorModel objects for substitution.
Fields
Hide/Show inherited fields
protected boolean 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.
protected ImageConsumer consumer [Inherited From ImageFilter]
  The consumer of the particular image data stream for which this instance of the ImageFilter is filtering data.
protected ColorModel newmodel
The ColorModel with which to replace origmodel when the user calls substituteColorModel.
protected ColorModel origmodel
The ColorModel to be replaced by newmodel when the user calls substituteColorModel.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar