|
Java Platform 1.2 Beta 4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.image.AffineTransformOp
If a RenderingHints object is specified in the constructor, the interpolation hint and the rendering quality hint are used to set the interpolation type for this op. The color rendering hint and the dithering hint may be used when color conversion is required.
Note that the following constraints have to be met:
AffineTransform
,
BufferedImageFilter
,
RenderingHints.KEY_INTERPOLATION
,
RenderingHints.KEY_RENDERING
,
RenderingHints.KEY_COLOR_RENDERING
,
RenderingHints.KEY_DITHERING
Field Summary | |
static int | TYPE_BILINEAR
Bilinear interpolation type. |
static int | TYPE_NEAREST_NEIGHBOR
Nearest neighbor interpolation type. |
Constructor Summary | |
AffineTransformOp(AffineTransform xform,
RenderingHints hints)
Constructs an AffineTransformOp given an affine transform. |
Method Summary | |
BufferedImage | createCompatibleDestImage(BufferedImage src,
ColorModel destCM)
Creates a zeroed destination image with the correct size and number of bands. |
WritableRaster | createCompatibleDestRaster(Raster src)
Creates a zeroed destination Raster with the correct size and number of bands. |
BufferedImage | filter(BufferedImage src,
BufferedImage dst)
Transforms the source BufferedImage and stores the results in the destination BufferedImage. |
WritableRaster | filter(Raster src,
WritableRaster dst)
Transforms the source Raster and stores the results in the destination Raster. |
Rectangle2D | getBounds2D(BufferedImage src)
Returns the bounding box of the transformed destination. |
Rectangle2D | getBounds2D(Raster src)
Returns the bounding box of the transformed destination. |
int | getInterpolationType()
Constructs an AffineTransformOp given an affine transform. |
Point2D | getPoint2D(Point2D srcPt,
Point2D dstPt)
Returns the location of the destination point given a point in the source. |
RenderingHints | getRenderingHints()
Returns the rendering hints used by this op. |
AffineTransform | getTransform()
Returns the transform used by this op. |
Methods inherited from class java.lang.Object | |
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
Field Detail |
public static final int TYPE_NEAREST_NEIGHBOR
public static final int TYPE_BILINEAR
Constructor Detail |
public AffineTransformOp(AffineTransform xform, RenderingHints hints)
Method Detail |
public final int getInterpolationType()
public final BufferedImage filter(BufferedImage src, BufferedImage dst)
public final WritableRaster filter(Raster src, WritableRaster dst)
public final Rectangle2D getBounds2D(BufferedImage src)
public final Rectangle2D getBounds2D(Raster src)
public BufferedImage createCompatibleDestImage(BufferedImage src, ColorModel destCM)
src
- Source image for the filter operation.
destCM
- ColorModel of the destination. If null,
an appropriate ColorModel will be used.public WritableRaster createCompatibleDestRaster(Raster src)
public final Point2D getPoint2D(Point2D srcPt, Point2D dstPt)
public final AffineTransform getTransform()
public final RenderingHints getRenderingHints()
|
Java Platform 1.2 Beta 4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |