| javax.media.jai.GeometricOpImage com.sun.media.jai.opimage.AffineOpImage
All known Subclasses: com.sun.media.jai.opimage.AffineGeneralOpImage, com.sun.media.jai.opimage.AffineBicubic2OpImage, com.sun.media.jai.opimage.AffineBicubicOpImage, com.sun.media.jai.opimage.AffineBilinearOpImage, com.sun.media.jai.opimage.AffineNearestOpImage,
AffineOpImage | class AffineOpImage extends GeometricOpImage (Code) | | An OpImage class to perform (possibly filtered) affine mapping between
a source and destination image.
The geometric relationship between source and destination pixels
is defined as the following (x and y denote
the source pixel coordinates; x' and y'
denote the destination pixel coordinates; m denotes the
3x2 transform matrix):
x' = m[0][0] * x + m[0][1] * y + m[0][2]
y' = m[1][0] * x + m[1][1] * y + m[1][2]
|
Method Summary | |
protected Rectangle | backwardMapRect(Rectangle destRect, int sourceIndex) Backward map the destination Rectangle. | protected static int | ceilRatio(long num, long denom) Computes ceil(num/denom) using integer arithmetic. | public Raster | computeTile(int tileX, int tileY) | protected static int | floorRatio(long num, long denom) Computes floor(num/denom) using integer arithmetic. | protected Rectangle | forwardMapRect(Rectangle sourceRect, int sourceIndex) Forward map the source Rectangle. | public Point2D | mapDestPoint(Point2D destPt) Computes the source point corresponding to the supplied point.
Parameters: destPt - the position in destination image coordinatesto map to source image coordinates. | public void | mapDestPoint(Point2D destPoint, Point2D srcPoint) Backward map a destination coordinate (using inverse_transform)
to get the corresponding source coordinate. | public Point2D | mapSourcePoint(Point2D sourcePt) Computes the destination point corresponding to the supplied point.
Parameters: sourcePt - the position in source image coordinatesto map to destination image coordinates. |
USHORT_MAX | final protected static int USHORT_MAX(Code) | | Unsigned short Max Value
|
f_transform | protected AffineTransform f_transform(Code) | | The forward AffineTransform describing the image transformation.
|
fracdxfracdx1fracdyfracdy1 | double fracdxfracdx1fracdyfracdy1(Code) | | |
geom_frac_max | final protected static int geom_frac_max(Code) | | The fixed-point denominator of the fractional offsets.
|
i_transform | protected AffineTransform i_transform(Code) | | The inverse AffineTransform describing the image transformation.
|
ifracdxifracdx1ifracdyifracdy1 | int ifracdxifracdx1ifracdyifracdy1(Code) | | |
incxincx1incyincy1 | int incxincx1incyincy1(Code) | | |
lpadrpadtpadbpad | public int lpadrpadtpadbpad(Code) | | Padding values for interpolation
|
m00m10flr_m00flr_m10 | double m00m10flr_m00flr_m10(Code) | | |
AffineOpImage | public AffineOpImage(RenderedImage source, BorderExtender extender, Map config, ImageLayout layout, AffineTransform transform, Interpolation interp, double[] backgroundValues)(Code) | | Constructs an AffineOpImage from a RenderedImage source,
AffineTransform, and Interpolation object. The image
dimensions are determined by forward-mapping the source bounds.
The tile grid layout, SampleModel, and ColorModel are specified
by the image source, possibly overridden by values from the
ImageLayout parameter.
Parameters: source - a RenderedImage. Parameters: extender - a BorderExtender, or null. Parameters: layout - an ImageLayout optionally containing the tile grid layout,SampleModel, and ColorModel, or null. Parameters: transform - the desired AffineTransform. Parameters: interp - an Interpolation object. |
backwardMapRect | protected Rectangle backwardMapRect(Rectangle destRect, int sourceIndex)(Code) | | Backward map the destination Rectangle.
|
ceilRatio | protected static int ceilRatio(long num, long denom)(Code) | | Computes ceil(num/denom) using integer arithmetic.
denom must not be equal to 0.
|
computeTile | public Raster computeTile(int tileX, int tileY)(Code) | | |
floorRatio | protected static int floorRatio(long num, long denom)(Code) | | Computes floor(num/denom) using integer arithmetic.
denom must not be equal to 0.
|
forwardMapRect | protected Rectangle forwardMapRect(Rectangle sourceRect, int sourceIndex)(Code) | | Forward map the source Rectangle.
|
mapDestPoint | public Point2D mapDestPoint(Point2D destPt)(Code) | | Computes the source point corresponding to the supplied point.
Parameters: destPt - the position in destination image coordinatesto map to source image coordinates. a Point2D of the same class asdestPt . throws: IllegalArgumentException - if destPt isnull . since: JAI 1.1.2 |
mapDestPoint | public void mapDestPoint(Point2D destPoint, Point2D srcPoint)(Code) | | Backward map a destination coordinate (using inverse_transform)
to get the corresponding source coordinate.
We need not worry about interpolation here.
Parameters: destPt - the destination point to backward map source point result of the backward map |
mapSourcePoint | public Point2D mapSourcePoint(Point2D sourcePt)(Code) | | Computes the destination point corresponding to the supplied point.
Parameters: sourcePt - the position in source image coordinatesto map to destination image coordinates. a Point2D of the same class assourcePt . throws: IllegalArgumentException - if destPt isnull . since: JAI 1.1.2 |
|
|