| com.sun.media.jai.mlib.MlibScaleOpImage com.sun.media.jai.mlib.MlibScaleNearestOpImage
MlibScaleNearestOpImage | final class MlibScaleNearestOpImage extends MlibScaleOpImage (Code) | | An OpImage class that scales an image using nearest-neighbor
interpolation.
|
Method Summary | |
protected void | computeRect(Raster[] sources, WritableRaster dest, Rectangle destRect) Scale the given rectangle by the specified scale and translation
factors. |
MlibScaleNearestOpImage | public MlibScaleNearestOpImage(RenderedImage source, BorderExtender extender, Map config, ImageLayout layout, float xScale, float yScale, float xTrans, float yTrans, Interpolation interp)(Code) | | Constructs an MlibScaleNearestOpImage. The image dimensions are copied
from the source image. The tile grid layout, SampleModel, and
ColorModel may optionally be specified by an ImageLayout object.
Parameters: source - a RenderedImage. Parameters: layout - an ImageLayout optionally containing the tilegrid layout, SampleModel, and ColorModel, or null. Parameters: xScale - the x scaling factor. Parameters: yScale - the y scaling factor. Parameters: xTrans - the x translation factor. Parameters: yTrans - the y translation factor. Parameters: interp - the Nearest interpolation object. |
computeRect | protected void computeRect(Raster[] sources, WritableRaster dest, Rectangle destRect)(Code) | | Scale the given rectangle by the specified scale and translation
factors. The sources are cobbled.
Parameters: sources - an array of sources, guarantee to provide allnecessary source data for computing the rectangle. Parameters: dest - a tile that contains the rectangle to be computed. Parameters: destRect - the rectangle within this OpImage to be processed. |
|
|