API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt.image. CropImageFilter View Source
Author(s)
Jim Graham
Since
Version
1.19 11/17/05
Serial
Hierarchy
 Object
      ImageFilter
          CropImageFilter
Implements
Subclasses
Description
public class CropImageFilter
  An ImageFilter class for cropping images.
Constructors
public CropImageFilter (int x, int y, int w, int h)
  Constructs a CropImageFilter that extracts the absolute rectangular region of pixels from its source Image as specified by the x, y, w, and h parameters.
Methods
Hide/Show inherited methods
public Object clone () [Inherited From ImageFilter]
Clones this object.
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) [Inherited From ImageFilter]
  Filter the information provided in the setColorModel method of the ImageConsumer interface.
public void setDimensions (int w, int h) [Overrides ImageFilter]
  Override the source image's dimensions and pass the dimensions of the rectangular cropped region to the ImageConsumer.
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]
  Determine whether the delivered byte pixels intersect the region to be extracted and passes through only that subset of pixels that appear in the output region.
public void setPixels (int x, int y, int w, int h, ColorModel model, int[] pixels, int off, int scansize) [Overrides ImageFilter]
  Determine if the delivered int pixels intersect the region to be extracted and pass through only that subset of pixels that appear in the output region.
public void setProperties (Hashtable<Object, Object> props) [Overrides ImageFilter]
  Passes along the properties from the source object after adding a property indicating the cropped region.
Fields
Hide/Show inherited fields
protected ImageConsumer consumer [Inherited From ImageFilter]
  The consumer of the particular image data stream for which this instance of the ImageFilter is filtering data.
pack-private int cropH
pack-private int cropW
pack-private int cropX
pack-private int cropY
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar