public class AffineTransformOp
extends java.lang.Object
implements java.awt.image.BufferedImageOp, java.awt.image.RasterOp
AffineTransformOp.
Currently only a modification on filter(BufferedImage, BufferedImage) is done, which does a Graphics2D fallback for the native lib.
| Modifier and Type | Field and Description |
|---|---|
static int |
TYPE_BICUBIC |
static int |
TYPE_BILINEAR |
static int |
TYPE_NEAREST_NEIGHBOR |
| Constructor and Description |
|---|
AffineTransformOp(java.awt.geom.AffineTransform xform,
int interpolationType) |
AffineTransformOp(java.awt.geom.AffineTransform xform,
java.awt.RenderingHints hints) |
| Modifier and Type | Method and Description |
|---|---|
java.awt.image.BufferedImage |
createCompatibleDestImage(java.awt.image.BufferedImage src,
java.awt.image.ColorModel destCM) |
java.awt.image.WritableRaster |
createCompatibleDestRaster(java.awt.image.Raster src) |
java.awt.image.BufferedImage |
filter(java.awt.image.BufferedImage src,
java.awt.image.BufferedImage dst) |
java.awt.image.WritableRaster |
filter(java.awt.image.Raster src,
java.awt.image.WritableRaster dest) |
java.awt.geom.Rectangle2D |
getBounds2D(java.awt.image.BufferedImage src) |
java.awt.geom.Rectangle2D |
getBounds2D(java.awt.image.Raster src) |
java.awt.geom.Point2D |
getPoint2D(java.awt.geom.Point2D srcPt,
java.awt.geom.Point2D dstPt) |
java.awt.RenderingHints |
getRenderingHints() |
public static final int TYPE_NEAREST_NEIGHBOR
public static final int TYPE_BILINEAR
public static final int TYPE_BICUBIC
public AffineTransformOp(java.awt.geom.AffineTransform xform,
java.awt.RenderingHints hints)
xform - The AffineTransform to use for the operation.hints - The RenderingHints object used to specify the interpolation type for the operation.public AffineTransformOp(java.awt.geom.AffineTransform xform,
int interpolationType)
xform - The AffineTransform to use for the operation.interpolationType - One of the integer interpolation type constants defined by this class: TYPE_NEAREST_NEIGHBOR, TYPE_BILINEAR, TYPE_BICUBIC.public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src,
java.awt.image.BufferedImage dst)
filter in interface java.awt.image.BufferedImageOppublic java.awt.geom.Rectangle2D getBounds2D(java.awt.image.BufferedImage src)
getBounds2D in interface java.awt.image.BufferedImageOppublic java.awt.image.BufferedImage createCompatibleDestImage(java.awt.image.BufferedImage src,
java.awt.image.ColorModel destCM)
createCompatibleDestImage in interface java.awt.image.BufferedImageOppublic java.awt.image.WritableRaster filter(java.awt.image.Raster src,
java.awt.image.WritableRaster dest)
filter in interface java.awt.image.RasterOppublic java.awt.geom.Rectangle2D getBounds2D(java.awt.image.Raster src)
getBounds2D in interface java.awt.image.RasterOppublic java.awt.image.WritableRaster createCompatibleDestRaster(java.awt.image.Raster src)
createCompatibleDestRaster in interface java.awt.image.RasterOppublic java.awt.geom.Point2D getPoint2D(java.awt.geom.Point2D srcPt,
java.awt.geom.Point2D dstPt)
getPoint2D in interface java.awt.image.BufferedImageOpgetPoint2D in interface java.awt.image.RasterOppublic java.awt.RenderingHints getRenderingHints()
getRenderingHints in interface java.awt.image.BufferedImageOpgetRenderingHints in interface java.awt.image.RasterOpCopyright © 2018. All Rights Reserved.