API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt.image. AreaAveragingScaleFilter View Source
Author(s)
Jim Graham
Since
Version
1.16 11/17/05
Serial
Hierarchy
 Object
      ImageFilter
          ReplicateScaleFilter
              AreaAveragingScaleFilter
Implements
Subclasses
Description
public class AreaAveragingScaleFilter
  An ImageFilter class for scaling images using a simple area averaging algorithm that produces smoother results than the nearest neighbor algorithm.
Constructors
public AreaAveragingScaleFilter (int width, int height)
  Constructs an AreaAveragingScaleFilter that scales the pixels from its source Image as specified by the width and height 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) [Inherited From ReplicateScaleFilter]
  Override the dimensions of the source image and pass the dimensions of the new scaled size to the ImageConsumer.
public void setHints (int hints) [Overrides ImageFilter]
  Detect if the data is being delivered with the necessary hints to allow the averaging algorithm to do its work.
public void setPixels (int x, int y, int w, int h, ColorModel model, byte[] pixels, int off, int scansize) [Overrides ReplicateScaleFilter]
  Combine the components for the delivered byte pixels into the accumulation arrays and send on any averaged data for rows of pixels that are complete.
public void setPixels (int x, int y, int w, int h, ColorModel model, int[] pixels, int off, int scansize) [Overrides ReplicateScaleFilter]
  Combine the components for the delivered int pixels into the accumulation arrays and send on any averaged data for rows of pixels that are complete.
public void setProperties (Hashtable<Object, Object> props) [Inherited From ReplicateScaleFilter]
  Passes along the properties from the source object after adding a property indicating the scale applied.
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.
protected int destHeight [Inherited From ReplicateScaleFilter]
The target height to scale the image.
protected int destWidth [Inherited From ReplicateScaleFilter]
The target width to scale the image.
protected Object outpixbuf [Inherited From ReplicateScaleFilter]
A byte array initialized with a size of ReplicateScaleFilter.destWidth and used to deliver a row of pixel data to the ImageConsumer.
protected int srccols [Inherited From ReplicateScaleFilter]
An int array containing information about a column of pixels.
protected int srcHeight [Inherited From ReplicateScaleFilter]
The height of the source image.
protected int srcrows [Inherited From ReplicateScaleFilter]
An int array containing information about a row of pixels.
protected int srcWidth [Inherited From ReplicateScaleFilter]
The width of the source image.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar