An ImageFilter class for scaling images using the simplest algorithm.
This class extends the basic ImageFilter Class to scale an existing
image and provide a source for a new image containing the resampled
image. The pixels in the source image are sampled to produce pixels
for an image of the specified size by replicating rows and columns of
pixels to scale up or omitting rows and columns of pixels to scale
It is meant to be used in conjunction with a FilteredImageSource
object to produce scaled versions of existing images.
Passes along the properties from the source object after adding a
property indicating the scale applied.
protected int srcWidth
protected int srcHeight
protected int destWidth
protected int destHeight
protected int srcrows
protected int srccols
protected Object outpixbuf
public ReplicateScaleFilter(int width,
Constructs a ReplicateScaleFilter that scales the pixels from
its source Image as specified by the width and height parameters.