Package com.twelvemonkeys.image
Class AffineTransformOp
java.lang.Object
com.twelvemonkeys.image.AffineTransformOp
- All Implemented Interfaces:
BufferedImageOp
,RasterOp
This is a drop-in replacement for
AffineTransformOp
.
Currently only a modification on filter(BufferedImage, BufferedImage)
is done, which does a Graphics2D fallback for the native lib.
- Version:
- $Id$
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final AffineTransformOp
static final int
static final int
static final int
-
Constructor Summary
ConstructorsConstructorDescriptionAffineTransformOp
(AffineTransform xform, int interpolationType) AffineTransformOp
(AffineTransform xform, RenderingHints hints) -
Method Summary
Modifier and TypeMethodDescriptioncreateCompatibleDestImage
(BufferedImage src, ColorModel destCM) filter
(BufferedImage src, BufferedImage dst) filter
(Raster src, WritableRaster dest) getBounds2D
(BufferedImage src) getBounds2D
(Raster src) getPoint2D
(Point2D srcPt, Point2D dstPt)
-
Field Details
-
delegate
-
TYPE_NEAREST_NEIGHBOR
public static final int TYPE_NEAREST_NEIGHBOR- See Also:
-
TYPE_BILINEAR
public static final int TYPE_BILINEAR- See Also:
-
TYPE_BICUBIC
public static final int TYPE_BICUBIC- See Also:
-
-
Constructor Details
-
AffineTransformOp
- Parameters:
xform
- TheAffineTransform
to use for the operation.hints
- TheRenderingHints
object used to specify the interpolation type for the operation.
-
AffineTransformOp
- Parameters:
xform
- TheAffineTransform
to use for the operation.interpolationType
- One of the integer interpolation type constants defined by this class:TYPE_NEAREST_NEIGHBOR
,TYPE_BILINEAR
,TYPE_BICUBIC
.
-
-
Method Details
-
filter
- Specified by:
filter
in interfaceBufferedImageOp
-
getBounds2D
- Specified by:
getBounds2D
in interfaceBufferedImageOp
-
createCompatibleDestImage
- Specified by:
createCompatibleDestImage
in interfaceBufferedImageOp
-
filter
-
getBounds2D
- Specified by:
getBounds2D
in interfaceRasterOp
-
createCompatibleDestRaster
- Specified by:
createCompatibleDestRaster
in interfaceRasterOp
-
getPoint2D
- Specified by:
getPoint2D
in interfaceBufferedImageOp
- Specified by:
getPoint2D
in interfaceRasterOp
-
getRenderingHints
- Specified by:
getRenderingHints
in interfaceBufferedImageOp
- Specified by:
getRenderingHints
in interfaceRasterOp
-