org.geotools.image.palette
Class InverseColorMapOp
java.lang.Object
org.geotools.image.palette.InverseColorMapOp
- All Implemented Interfaces:
- java.awt.image.BufferedImageOp
public final class InverseColorMapOp
- extends java.lang.Object
- implements java.awt.image.BufferedImageOp
This class provide an Image oriented interface for the
EfficientInverseColorMapComputation
. Specifically, it is designed in
order to implement the BufferedImage
for processing
BufferedImage
s efficiently accessing the raster pixels directly but
it also provide a method to process general RenderedImage
s
implementations.
- Author:
- Simone Giannecchini - GeoSolutions SAS
- See Also:
EfficientInverseColorMapComputation
Constructor Summary |
InverseColorMapOp(java.awt.image.IndexColorModel destCM)
|
InverseColorMapOp(java.awt.image.IndexColorModel destCM,
int quantizationColors,
int alphaThreshold)
|
Method Summary |
java.awt.image.BufferedImage |
createCompatibleDestImage(java.awt.image.BufferedImage src,
java.awt.image.ColorModel destCM)
|
java.awt.image.BufferedImage |
filter(java.awt.image.BufferedImage src,
java.awt.image.BufferedImage dest)
|
java.awt.image.BufferedImage |
filterRenderedImage(java.awt.image.RenderedImage src)
|
java.awt.geom.Rectangle2D |
getBounds2D(java.awt.image.BufferedImage src)
|
java.awt.image.IndexColorModel |
getIcm()
|
java.awt.geom.Point2D |
getPoint2D(java.awt.geom.Point2D srcPt,
java.awt.geom.Point2D dstPt)
|
java.awt.RenderingHints |
getRenderingHints()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
rasterOp
protected final InverseColorMapRasterOp rasterOp
icm
protected final java.awt.image.IndexColorModel icm
alphaThreshold
protected final int alphaThreshold
hasAlpha
protected final boolean hasAlpha
transparencyIndex
protected final int transparencyIndex
InverseColorMapOp
public InverseColorMapOp(java.awt.image.IndexColorModel destCM,
int quantizationColors,
int alphaThreshold)
InverseColorMapOp
public InverseColorMapOp(java.awt.image.IndexColorModel destCM)
createCompatibleDestImage
public java.awt.image.BufferedImage createCompatibleDestImage(java.awt.image.BufferedImage src,
java.awt.image.ColorModel destCM)
- Specified by:
createCompatibleDestImage
in interface java.awt.image.BufferedImageOp
filter
public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src,
java.awt.image.BufferedImage dest)
- Specified by:
filter
in interface java.awt.image.BufferedImageOp
filterRenderedImage
public java.awt.image.BufferedImage filterRenderedImage(java.awt.image.RenderedImage src)
getBounds2D
public java.awt.geom.Rectangle2D getBounds2D(java.awt.image.BufferedImage src)
- Specified by:
getBounds2D
in interface java.awt.image.BufferedImageOp
getPoint2D
public java.awt.geom.Point2D getPoint2D(java.awt.geom.Point2D srcPt,
java.awt.geom.Point2D dstPt)
- Specified by:
getPoint2D
in interface java.awt.image.BufferedImageOp
getRenderingHints
public java.awt.RenderingHints getRenderingHints()
- Specified by:
getRenderingHints
in interface java.awt.image.BufferedImageOp
getIcm
public java.awt.image.IndexColorModel getIcm()
Copyright © 1996-2010 Geotools. All Rights Reserved.