org.geotools.image.palette
Class InverseColorMapRasterOp

Object
  extended by InverseColorMapRasterOp
All Implemented Interfaces:
RasterOp

public final class InverseColorMapRasterOp
extends Object
implements RasterOp


Field Summary
protected  int alphaThreshold
           
static int DEFAULT_ALPHA_TH
          Default value for the threshold to decide whether a pixel is opaque (>=) or transparent (<).
static int DEFAULT_QUANTIZATION_COLORS
          Default number of quantization colors used to build the index for the inverse color map.
protected  boolean hasAlpha
           
protected  IndexColorModel icm
           
protected  EfficientInverseColorMapComputation invCM
           
protected  int transparencyIndex
           
 
Constructor Summary
InverseColorMapRasterOp(IndexColorModel destCM)
           
InverseColorMapRasterOp(IndexColorModel destCM, int quantizationColors, int alphaThreshold)
           
 
Method Summary
 WritableRaster createCompatibleDestRaster(Raster src)
           
 WritableRaster filter(Raster src, WritableRaster dest)
           
 Rectangle2D getBounds2D(Raster src)
           
 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

DEFAULT_QUANTIZATION_COLORS

public static final int DEFAULT_QUANTIZATION_COLORS
Default number of quantization colors used to build the index for the inverse color map.

See Also:
Constant Field Values

DEFAULT_ALPHA_TH

public static final int DEFAULT_ALPHA_TH
Default value for the threshold to decide whether a pixel is opaque (>=) or transparent (<).

See Also:
Constant Field Values

icm

protected final IndexColorModel icm

alphaThreshold

protected int alphaThreshold

hasAlpha

protected boolean hasAlpha

transparencyIndex

protected int transparencyIndex

invCM

protected EfficientInverseColorMapComputation invCM
Constructor Detail

InverseColorMapRasterOp

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

InverseColorMapRasterOp

public InverseColorMapRasterOp(IndexColorModel destCM)
Method Detail

createCompatibleDestRaster

public WritableRaster createCompatibleDestRaster(Raster src)
Specified by:
createCompatibleDestRaster in interface RasterOp

filter

public WritableRaster filter(Raster src,
                             WritableRaster dest)
Specified by:
filter in interface RasterOp

getBounds2D

public Rectangle2D getBounds2D(Raster src)
Specified by:
getBounds2D in interface RasterOp

getPoint2D

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

getRenderingHints

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


Copyright © 1996-2009 Geotools. All Rights Reserved.