BufferedImageOp, RasterOppublic class AffineTransformOp extends Object implements BufferedImageOp, 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 | Description |
|---|---|---|
static int |
TYPE_BICUBIC |
|
static int |
TYPE_BILINEAR |
|
static int |
TYPE_NEAREST_NEIGHBOR |
| Constructor | Description |
|---|---|
AffineTransformOp(AffineTransform xform,
int interpolationType) |
|
AffineTransformOp(AffineTransform xform,
RenderingHints hints) |
| Modifier and Type | Method | Description |
|---|---|---|
BufferedImage |
createCompatibleDestImage(BufferedImage src,
ColorModel destCM) |
|
WritableRaster |
createCompatibleDestRaster(Raster src) |
|
BufferedImage |
filter(BufferedImage src,
BufferedImage dst) |
|
WritableRaster |
filter(Raster src,
WritableRaster dest) |
|
Rectangle2D |
getBounds2D(BufferedImage src) |
|
Rectangle2D |
getBounds2D(Raster src) |
|
Point2D |
getPoint2D(Point2D srcPt,
Point2D dstPt) |
|
RenderingHints |
getRenderingHints() |
public static final int TYPE_NEAREST_NEIGHBOR
public static final int TYPE_BILINEAR
public static final int TYPE_BICUBIC
public AffineTransformOp(AffineTransform xform, 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(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 BufferedImage filter(BufferedImage src, BufferedImage dst)
filter in interface BufferedImageOppublic Rectangle2D getBounds2D(BufferedImage src)
getBounds2D in interface BufferedImageOppublic BufferedImage createCompatibleDestImage(BufferedImage src, ColorModel destCM)
createCompatibleDestImage in interface BufferedImageOppublic WritableRaster filter(Raster src, WritableRaster dest)
public Rectangle2D getBounds2D(Raster src)
getBounds2D in interface RasterOppublic WritableRaster createCompatibleDestRaster(Raster src)
createCompatibleDestRaster in interface RasterOppublic Point2D getPoint2D(Point2D srcPt, Point2D dstPt)
getPoint2D in interface BufferedImageOpgetPoint2D in interface RasterOppublic RenderingHints getRenderingHints()
getRenderingHints in interface BufferedImageOpgetRenderingHints in interface RasterOpCopyright © 2018. All rights reserved.