ImageFilterNameImageFilter
DescriptionThe ImageFilter class sits between the ImageProducer and ImageConsumer as an image is being created to provide a filtered version of that image. Image filters are always used in conjunction with a FilteredImageSource. As an implementer of the ImageConsumer interface, an image filter receives pixel data from the original image's source and delivers it to another image consumer. The ImageFilter class implements a null filter (i.e., the new image is the same as the original); to produce a filter that modifies an image, create a subclass of ImageFilter. Class Definition
public class java.awt.image.ImageFilter extends java.lang.Object implements java.awt.image.ImageConsumer, java.lang.Cloneable { // Variables protected ImageConsumer consumer; // Constructors public ImageFilter(); // Instance Methods public Object clone(); public ImageFilter getFilterInstance (ImageConsumer ic); public void imageComplete (int status); public void resendTopDownLeftRight (ImageProducer ip); public void setColorModel (ColorModel model); public void setDimensions (int width, int height); public void setHints (int hints); public void setPixels (int x, int y, int width, int height, ColorModel model, byte[] pixels, int offset, int scansize); public void setPixels (int x, int y, int width, int height, ColorModel model, int[] pixels, int offset, int scansize); public void setProperties (Hashtable properties); } Protected Variablesconsumerprotected ImageConsumer consumerThe consumer variable is a reference to the actual ImageConsumer for the Image. ConstructorsImageFilterpublic ImageFilter()
Instance Methodsclonepublic Object clone()
getFilterInstancepublic ImageFilter getFilterInstance (ImageConsumer ic)
imageCompletevoid imageComplete (int status)
resendTopDownLeftRightpublic void resendTopDownLeftRight (ImageProducer ip)
setColorModelvoid setColorModel (ColorModel model)
setDimensionsvoid setDimensions (int width, int height)
setHintsvoid setHints (int hints)
setPixelsvoid setPixels (int x, int y, int width, int height, ColorModel model, byte[] pixels, int offset, int scansize)
void setPixels (int x, int y, int width, int height, ColorModel model, int[] pixels, int offset, int scansize)
setPropertiesvoid setProperties (Hashtable properties)
See AlsoCloneable, ColorModel, CropImageFilter, Hashtable, ImageConsumer, ImageProducer, Object, ReplicateImageFilter, RGBImageFilter |
|