|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface describes single-input/single-output operations performed on BufferedImage objects. It is implemented by such classes as AffineTransformOp, ConvolveOp, BandCombineOp, and LookupOp. These objects can be passed into a BufferedImageFilter to operate on a BufferedImage in the ImageProducer-ImageFilter-ImageConsumer paradigm. This interface cannot be used to describe more sophisticated Ops such as ones that take multiple sources. Each class implementing this interface will specify whether or not it will allow an in-place filtering operation (i.e. source object equal to the destination object). Note that the restriction to single-input operations means that the values of destination pixels prior to the operation are not used as input to the filter operation.
BufferedImage
,
BufferedImageFilter
,
AffineTransformOp
,
BandCombineOp
,
ColorConvertOp
,
ConvolveOp
,
LookupOp
,
RescaleOp
Method Summary | |
BufferedImage |
createCompatibleDestImage(BufferedImage src,
ColorModel destCM)
Creates a zeroed destination image with the correct size and number of bands. |
BufferedImage |
filter(BufferedImage src,
BufferedImage dest)
Performs a single-input/single-output operation on a BufferedImage. |
Rectangle2D |
getBounds2D(BufferedImage src)
Returns the bounding box of the filtered destination image. |
Point2D |
getPoint2D(Point2D srcPt,
Point2D dstPt)
Returns the location of the destination point given a point in the source image. |
RenderingHints |
getRenderingHints()
Returns the rendering hints for this BufferedImageOp. |
Method Detail |
public BufferedImage filter(BufferedImage src, BufferedImage dest)
public Rectangle2D getBounds2D(BufferedImage src)
public BufferedImage createCompatibleDestImage(BufferedImage src, ColorModel destCM)
src
- Source image for the filter operation.destCM
- ColorModel of the destination. If null, the
ColorModel of the source will be used.public Point2D getPoint2D(Point2D srcPt, Point2D dstPt)
public RenderingHints getRenderingHints()
|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Java, Java 2D, and JDBC are trademarks or registered trademarks of Oracle and/or its affiliates, in the US and other countries.
Copyright © 1995, 2010 Oracle and/or its affiliates. All rights reserved.