org.geotools.image.palette
Class InverseColorMapOp

Object
  extended by InverseColorMapOp
All Implemented Interfaces:
BufferedImageOp

public final class InverseColorMapOp
extends Object
implements BufferedImageOp

This class provide an Image oriented interface for the EfficientInverseColorMapComputation. Specifically, it is designed in order to implement the BufferedImage for processing BufferedImages efficiently accessing the raster pixels directly but it also provide a method to process general RenderedImages implementations.

Author:
Simone Giannecchini - GeoSolutions SAS
See Also:
EfficientInverseColorMapComputation

Field Summary
protected  int alphaThreshold
           
protected  boolean hasAlpha
           
protected  IndexColorModel icm
           
protected  InverseColorMapRasterOp rasterOp
           
protected  int transparencyIndex
           
 
Constructor Summary
InverseColorMapOp(IndexColorModel destCM)
           
InverseColorMapOp(IndexColorModel destCM, int quantizationColors, int alphaThreshold)
           
 
Method Summary
 BufferedImage createCompatibleDestImage(BufferedImage src, ColorModel destCM)
           
 BufferedImage filter(BufferedImage src, BufferedImage dest)
           
 BufferedImage filterRenderedImage(RenderedImage src)
           
 Rectangle2D getBounds2D(BufferedImage src)
           
 IndexColorModel getIcm()
           
 Point2D getPoint2D(Point2D srcPt, Point2D dstPt)
           
 RenderingHints getRenderingHints()
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rasterOp

protected final InverseColorMapRasterOp rasterOp

icm

protected final IndexColorModel icm

alphaThreshold

protected final int alphaThreshold

hasAlpha

protected final boolean hasAlpha

transparencyIndex

protected final int transparencyIndex
Constructor Detail

InverseColorMapOp

public InverseColorMapOp(IndexColorModel destCM,
                         int quantizationColors,
                         int alphaThreshold)

InverseColorMapOp

public InverseColorMapOp(IndexColorModel destCM)
Method Detail

createCompatibleDestImage

public BufferedImage createCompatibleDestImage(BufferedImage src,
                                               ColorModel destCM)
Specified by:
createCompatibleDestImage in interface BufferedImageOp

filter

public BufferedImage filter(BufferedImage src,
                            BufferedImage dest)
Specified by:
filter in interface BufferedImageOp

filterRenderedImage

public BufferedImage filterRenderedImage(RenderedImage src)

getBounds2D

public Rectangle2D getBounds2D(BufferedImage src)
Specified by:
getBounds2D in interface BufferedImageOp

getPoint2D

public Point2D getPoint2D(Point2D srcPt,
                          Point2D dstPt)
Specified by:
getPoint2D in interface BufferedImageOp

getRenderingHints

public RenderingHints getRenderingHints()
Specified by:
getRenderingHints in interface BufferedImageOp

getIcm

public IndexColorModel getIcm()


Copyright © 1996-2009 Geotools. All Rights Reserved.