public class IdentityOp
extends java.lang.Object
implements java.awt.image.BufferedImageOp
| Constructor and Description |
|---|
IdentityOp() |
| Modifier and Type | Method and Description |
|---|---|
java.awt.image.BufferedImage |
createCompatibleDestImage(java.awt.image.BufferedImage src,
java.awt.image.ColorModel dstCM)
Creates a zeroed destination image with the correct size
and number of bands (required by BufferedImageOp).
|
java.awt.image.BufferedImage |
filter(java.awt.image.BufferedImage src,
java.awt.image.BufferedImage dst)
In general, performs a single-input/single-output operation on a
BufferedImage (required by BufferedImageOp).
|
java.awt.geom.Rectangle2D |
getBounds2D(java.awt.image.BufferedImage src)
Returns the bounding box of the filtered destination image
(required by BufferedImageOp)
|
java.awt.geom.Point2D |
getPoint2D(java.awt.geom.Point2D srcPt,
java.awt.geom.Point2D dstPt)
Returns the location of the corresponding destination point
given a point in the source image (required by BufferedImageOp).
|
java.awt.RenderingHints |
getRenderingHints()
Return the rendering hints for this operation
(required by BufferedImageOp).
|
public java.awt.image.BufferedImage createCompatibleDestImage(java.awt.image.BufferedImage src,
java.awt.image.ColorModel dstCM)
createCompatibleDestImage in interface java.awt.image.BufferedImageOpsrc - The source imagedstCM - The ColorModel to be used in the created imagepublic java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src,
java.awt.image.BufferedImage dst)
If the destination image is null, a BufferedImage with an appropriate ColorModel is created.
In this case, this method simply "returns" a (copy of) the source.
filter in interface java.awt.image.BufferedImageOpsrc - The source imagedst - An empty image in which to tore the result (or null)public java.awt.geom.Rectangle2D getBounds2D(java.awt.image.BufferedImage src)
getBounds2D in interface java.awt.image.BufferedImageOpsrc - The source imagepublic java.awt.geom.Point2D getPoint2D(java.awt.geom.Point2D srcPt,
java.awt.geom.Point2D dstPt)
getPoint2D in interface java.awt.image.BufferedImageOpsrcPt - The point in the source imagedstPt - The point in the destination imagepublic java.awt.RenderingHints getRenderingHints()
getRenderingHints in interface java.awt.image.BufferedImageOp