| javax.media.jai.ScaleOpImage com.sun.media.jai.opimage.ScaleNearestBinaryOpImage
ScaleNearestBinaryOpImage | final class ScaleNearestBinaryOpImage extends ScaleOpImage (Code) | | An OpImage subclass that performs nearest-neighbor scaling
for binary images with a MultiPixelPackedSampleModel
and byte, short, or int DataBuffers.
|
Method Summary | |
protected void | computeRect(Raster[] sources, WritableRaster dest, Rectangle destRect) Performs a scale operation on a specified rectangle. |
invScaleXIntinvScaleXFrac | long invScaleXIntinvScaleXFrac(Code) | | |
invScaleYIntinvScaleYFrac | long invScaleYIntinvScaleYFrac(Code) | | |
ScaleNearestBinaryOpImage | public ScaleNearestBinaryOpImage(RenderedImage source, BorderExtender extender, Map config, ImageLayout layout, float xScale, float yScale, float xTrans, float yTrans, Interpolation interp)(Code) | | Constructs a ScaleNearestBinaryOpImage from a RenderedImage source,
Parameters: source - a RenderedImage. Parameters: layout - an ImageLayout optionally containing the tile grid layout,SampleModel, and ColorModel, or null. Parameters: xScale - scale factor along x axis. Parameters: yScale - scale factor along y axis. Parameters: xTrans - translation factor along x axis. Parameters: yTrans - translation factor along y axis. Parameters: interp - an Interpolation object to use for resampling. |
computeRect | protected void computeRect(Raster[] sources, WritableRaster dest, Rectangle destRect)(Code) | | Performs a scale operation on a specified rectangle. The sources are
cobbled.
Parameters: sources - an array of source Rasters, guaranteed to provide allnecessary source data for computing the output. Parameters: dest - a WritableRaster containing the area to be computed. Parameters: destRect - the rectangle within dest to be processed. |
|
|