| com.sun.media.jai.mlib.MlibScaleOpImage com.sun.media.jai.mlib.MlibScaleTableOpImage
MlibScaleTableOpImage | final class MlibScaleTableOpImage extends MlibScaleOpImage (Code) | | An OpImage class that scales an image using interpolation coefficients
specified in a table format.
|
Method Summary | |
protected void | computeRect(Raster[] sources, WritableRaster dest, Rectangle destRect) Scale the given rectangle by the specified scale and translation
factors. |
MlibScaleTableOpImage | public MlibScaleTableOpImage(RenderedImage source, BorderExtender extender, Map config, ImageLayout layout, float xScale, float yScale, float xTrans, float yTrans, Interpolation interp)(Code) | | Constructs an MlibScaleTableOpImage. 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: extender - a BorderExtender, or null. 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 InterpolationTable 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. |
|
|