API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt.image. ReplicateScaleFilter View Source
Author(s)
Jim Graham
Since
Version
1.21 11/17/05
Serial
Hierarchy
 Object
      ImageFilter
          ReplicateScaleFilter
Implements
Subclasses
Description
public class ReplicateScaleFilter
  An ImageFilter class for scaling images using the simplest algorithm.
Constructors
public ReplicateScaleFilter (int width, int height)
  Constructs a ReplicateScaleFilter 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) [Overrides ImageFilter]
  Override the dimensions of the source image and pass the dimensions of the new scaled size 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]
  Choose which rows and columns of the delivered byte pixels are needed for the destination scaled image and pass through just those rows and columns that are needed, replicated as necessary.
public void setPixels (int x, int y, int w, int h, ColorModel model, int[] pixels, int off, int scansize) [Overrides ImageFilter]
  Choose which rows and columns of the delivered int pixels are needed for the destination scaled image and pass through just those rows and columns that are needed, replicated as necessary.
public void setProperties (Hashtable<Object, Object> props) [Overrides ImageFilter]
  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
The target height to scale the image.
protected int destWidth
The target width to scale the image.
protected Object outpixbuf
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
An int array containing information about a column of pixels.
protected int srcHeight
The height of the source image.
protected int srcrows
An int array containing information about a row of pixels.
protected int srcWidth
The width of the source image.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar