org.geotools.image.palette
Class InverseColorMapRasterOp

Object
  extended by InverseColorMapRasterOp
All Implemented Interfaces:
RasterOp

public final class InverseColorMapRasterOp
extends Object
implements RasterOp


Field Summary
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.
 
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
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-2014 Geotools. All Rights Reserved.