Class InverseColorMapRasterOp

  • All Implemented Interfaces:
    RasterOp

    public final class InverseColorMapRasterOp
    extends Object
    implements RasterOp
    • 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.
    • 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