Package org.geotools.image.palette
Class InverseColorMapRasterOp
- Object
-
- InverseColorMapRasterOp
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_ALPHA_THDefault value for the threshold to decide whether a pixel is opaque (>=) or transparent (<).static intDEFAULT_QUANTIZATION_COLORSDefault number of quantization colors used to build the index for the inverse color map.
-
Constructor Summary
Constructors Constructor Description InverseColorMapRasterOp(IndexColorModel destCM)InverseColorMapRasterOp(IndexColorModel destCM, int quantizationColors, int alphaThreshold)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WritableRastercreateCompatibleDestRaster(Raster src)WritableRasterfilter(Raster src, WritableRaster dest)Rectangle2DgetBounds2D(Raster src)Point2DgetPoint2D(Point2D srcPt, Point2D dstPt)RenderingHintsgetRenderingHints()
-
-
-
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:
createCompatibleDestRasterin interfaceRasterOp
-
filter
public WritableRaster filter(Raster src, WritableRaster dest)
-
getBounds2D
public Rectangle2D getBounds2D(Raster src)
- Specified by:
getBounds2Din interfaceRasterOp
-
getPoint2D
public Point2D getPoint2D(Point2D srcPt, Point2D dstPt)
- Specified by:
getPoint2Din interfaceRasterOp
-
getRenderingHints
public RenderingHints getRenderingHints()
- Specified by:
getRenderingHintsin interfaceRasterOp
-
-