Package com.twelvemonkeys.image
Class AffineTransformOp
- java.lang.Object
-
- com.twelvemonkeys.image.AffineTransformOp
-
- All Implemented Interfaces:
java.awt.image.BufferedImageOp,java.awt.image.RasterOp
public class AffineTransformOp extends java.lang.Object implements java.awt.image.BufferedImageOp, java.awt.image.RasterOpThis is a drop-in replacement forAffineTransformOp.Currently only a modification on
filter(BufferedImage, BufferedImage)is done, which does a Graphics2D fallback for the native lib.- Version:
- $Id$
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.awt.image.AffineTransformOpdelegatestatic intTYPE_BICUBICstatic intTYPE_BILINEARstatic intTYPE_NEAREST_NEIGHBOR
-
Constructor Summary
Constructors Constructor Description AffineTransformOp(java.awt.geom.AffineTransform xform, int interpolationType)AffineTransformOp(java.awt.geom.AffineTransform xform, java.awt.RenderingHints hints)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.image.BufferedImagecreateCompatibleDestImage(java.awt.image.BufferedImage src, java.awt.image.ColorModel destCM)java.awt.image.WritableRastercreateCompatibleDestRaster(java.awt.image.Raster src)java.awt.image.BufferedImagefilter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)java.awt.image.WritableRasterfilter(java.awt.image.Raster src, java.awt.image.WritableRaster dest)java.awt.geom.Rectangle2DgetBounds2D(java.awt.image.BufferedImage src)java.awt.geom.Rectangle2DgetBounds2D(java.awt.image.Raster src)java.awt.geom.Point2DgetPoint2D(java.awt.geom.Point2D srcPt, java.awt.geom.Point2D dstPt)java.awt.RenderingHintsgetRenderingHints()
-
-
-
Field Detail
-
delegate
final java.awt.image.AffineTransformOp delegate
-
TYPE_NEAREST_NEIGHBOR
public static final int TYPE_NEAREST_NEIGHBOR
- See Also:
- Constant Field Values
-
TYPE_BILINEAR
public static final int TYPE_BILINEAR
- See Also:
- Constant Field Values
-
TYPE_BICUBIC
public static final int TYPE_BICUBIC
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AffineTransformOp
public AffineTransformOp(java.awt.geom.AffineTransform xform, java.awt.RenderingHints hints)- Parameters:
xform- TheAffineTransformto use for the operation.hints- TheRenderingHintsobject used to specify the interpolation type for the operation.
-
AffineTransformOp
public AffineTransformOp(java.awt.geom.AffineTransform xform, int interpolationType)- Parameters:
xform- TheAffineTransformto use for the operation.interpolationType- One of the integer interpolation type constants defined by this class:TYPE_NEAREST_NEIGHBOR,TYPE_BILINEAR,TYPE_BICUBIC.
-
-
Method Detail
-
filter
public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)- Specified by:
filterin interfacejava.awt.image.BufferedImageOp
-
getBounds2D
public java.awt.geom.Rectangle2D getBounds2D(java.awt.image.BufferedImage src)
- Specified by:
getBounds2Din interfacejava.awt.image.BufferedImageOp
-
createCompatibleDestImage
public java.awt.image.BufferedImage createCompatibleDestImage(java.awt.image.BufferedImage src, java.awt.image.ColorModel destCM)- Specified by:
createCompatibleDestImagein interfacejava.awt.image.BufferedImageOp
-
filter
public java.awt.image.WritableRaster filter(java.awt.image.Raster src, java.awt.image.WritableRaster dest)- Specified by:
filterin interfacejava.awt.image.RasterOp
-
getBounds2D
public java.awt.geom.Rectangle2D getBounds2D(java.awt.image.Raster src)
- Specified by:
getBounds2Din interfacejava.awt.image.RasterOp
-
createCompatibleDestRaster
public java.awt.image.WritableRaster createCompatibleDestRaster(java.awt.image.Raster src)
- Specified by:
createCompatibleDestRasterin interfacejava.awt.image.RasterOp
-
getPoint2D
public java.awt.geom.Point2D getPoint2D(java.awt.geom.Point2D srcPt, java.awt.geom.Point2D dstPt)- Specified by:
getPoint2Din interfacejava.awt.image.BufferedImageOp- Specified by:
getPoint2Din interfacejava.awt.image.RasterOp
-
getRenderingHints
public java.awt.RenderingHints getRenderingHints()
- Specified by:
getRenderingHintsin interfacejava.awt.image.BufferedImageOp- Specified by:
getRenderingHintsin interfacejava.awt.image.RasterOp
-
-