| com.sun.media.jai.opimage.AffineOpImage com.sun.media.jai.opimage.AffineNearestOpImage
All known Subclasses: com.sun.media.jai.opimage.AffineNearestBinaryOpImage,
AffineNearestOpImage | class AffineNearestOpImage extends AffineOpImage (Code) | | An OpImage subclass that performs nearest-neighbour Affine mapping
|
Method Summary | |
protected Point[] | advanceToStartOfScanline(int dst_min_x, int clipMinX, int s_ix, int s_iy, int ifracx, int ifracy) Sets s_ix, s_iy, ifracx, ifracy to their values at x == clipMinX
from their initial values at x == dst_min_x. | protected void | computeRect(Raster[] sources, WritableRaster dest, Rectangle destRect) Performs an affine transform on a specified rectangle. | protected Range | performScanlineClipping(float src_rect_x1, float src_rect_y1, float src_rect_x2, float src_rect_y2, int s_ix, int s_iy, int ifracx, int ifracy, int dst_min_x, int dst_max_x, int lpad, int rpad, int tpad, int bpad) Sets clipMinX, clipMaxX based on s_ix, s_iy, ifracx, ifracy,
dst_min_x, and dst_min_y. |
AffineNearestOpImage | public AffineNearestOpImage(RenderedImage source, BorderExtender extender, Map config, ImageLayout layout, AffineTransform transform, Interpolation interp, double[] backgroundValues)(Code) | | Constructs an AffineNearestOpImage from a RenderedImage source,
Parameters: source - a RenderedImage. Parameters: layout - an ImageLayout optionally containing the tile grid layout,SampleModel, and ColorModel, or null. Parameters: interp - an Interpolation object to use for resampling Parameters: transform - the desired AffineTransform. |
advanceToStartOfScanline | protected Point[] advanceToStartOfScanline(int dst_min_x, int clipMinX, int s_ix, int s_iy, int ifracx, int ifracy)(Code) | | Sets s_ix, s_iy, ifracx, ifracy to their values at x == clipMinX
from their initial values at x == dst_min_x.
The return Point array will contain the updated values of s_ix
and s_iy in the first element and those of ifracx and ifracy in the
second element.
|
computeRect | protected void computeRect(Raster[] sources, WritableRaster dest, Rectangle destRect)(Code) | | Performs an affine transform 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 tile containing the area to be computed. Parameters: destRect - the rectangle within dest to be processed. |
performScanlineClipping | protected Range performScanlineClipping(float src_rect_x1, float src_rect_y1, float src_rect_x2, float src_rect_y2, int s_ix, int s_iy, int ifracx, int ifracy, int dst_min_x, int dst_max_x, int lpad, int rpad, int tpad, int bpad)(Code) | | Sets clipMinX, clipMaxX based on s_ix, s_iy, ifracx, ifracy,
dst_min_x, and dst_min_y. Padding factors are added and
subtracted from the source bounds as given by
src_rect_{x,y}{1,2}. For example, for nearest-neighbor interpo
the padding factors should be set to (0, 0, 0, 0); for
bilinear, (0, 1, 0, 1); and for bicubic, (1, 2, 1, 2).
The returned Range object will be for the Integer class and
will contain extrema equivalent to clipMinX and clipMaxX.
|
|
|