Package org.geotools.image.palette
Class InverseColorMapRasterOp
- Object
-
- InverseColorMapRasterOp
-
-
Field Summary
Fields Modifier and Type Field Description 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
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 WritableRaster
createCompatibleDestRaster(Raster src)
WritableRaster
filter(Raster src, WritableRaster dest)
Rectangle2D
getBounds2D(Raster src)
Point2D
getPoint2D(Point2D srcPt, Point2D dstPt)
RenderingHints
getRenderingHints()
-
-
-
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 interfaceRasterOp
-
filter
public WritableRaster filter(Raster src, WritableRaster dest)
-
getBounds2D
public Rectangle2D getBounds2D(Raster src)
- Specified by:
getBounds2D
in interfaceRasterOp
-
getPoint2D
public Point2D getPoint2D(Point2D srcPt, Point2D dstPt)
- Specified by:
getPoint2D
in interfaceRasterOp
-
getRenderingHints
public RenderingHints getRenderingHints()
- Specified by:
getRenderingHints
in interfaceRasterOp
-
-