|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvisual.statik.sampled.IdentityOp
public class IdentityOp
A BufferedImageOp that returns (a copy of) the source image unchanged. This class is unlikely to be used directly. However, it is convenient to extend this class when implementing other operations. In such cases, it is often only necessary to override the filter() method.
Constructor Summary | |
---|---|
IdentityOp()
|
Method Summary | |
---|---|
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). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IdentityOp()
Method Detail |
---|
public java.awt.image.BufferedImage createCompatibleDestImage(java.awt.image.BufferedImage src, java.awt.image.ColorModel dstCM)
createCompatibleDestImage
in interface java.awt.image.BufferedImageOp
src
- 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)
filter
in interface java.awt.image.BufferedImageOp
src
- The source imagedst
- An empty image in which to srote the result (or null)public java.awt.geom.Rectangle2D getBounds2D(java.awt.image.BufferedImage src)
getBounds2D
in interface java.awt.image.BufferedImageOp
src
- The source imagepublic java.awt.geom.Point2D getPoint2D(java.awt.geom.Point2D srcPt, java.awt.geom.Point2D dstPt)
getPoint2D
in interface java.awt.image.BufferedImageOp
srcPt
- The point in the source imagedstPt
- The point in the destination imagepublic java.awt.RenderingHints getRenderingHints()
getRenderingHints
in interface java.awt.image.BufferedImageOp
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |