Class InverseColorMapOp

  • All Implemented Interfaces:

    public final class InverseColorMapOp
    extends Object
    implements BufferedImageOp
    This class provide an Image oriented interface for the EfficientInverseColorMapComputation. Specifically, it is designed in order to implement the BufferedImage for processing BufferedImages efficiently accessing the raster pixels directly but it also provide a method to process general RenderedImages implementations.
    Simone Giannecchini - GeoSolutions SAS
    See Also:
    • Field Detail

      • icm

        protected final IndexColorModel icm
      • alphaThreshold

        protected final int alphaThreshold
      • hasAlpha

        protected final boolean hasAlpha
      • transparencyIndex

        protected final int transparencyIndex
    • Constructor Detail

      • InverseColorMapOp

        public InverseColorMapOp​(IndexColorModel destCM,
                                 int quantizationColors,
                                 int alphaThreshold)
      • InverseColorMapOp

        public InverseColorMapOp​(IndexColorModel destCM)
    • Method Detail

      • createCompatibleDestImage

        public BufferedImage createCompatibleDestImage​(BufferedImage src,
                                                       ColorModel destCM)
        Specified by:
        createCompatibleDestImage in interface BufferedImageOp
      • filter

        public BufferedImage filter​(BufferedImage src,
                                    BufferedImage dest)
        Specified by:
        filter in interface BufferedImageOp
      • filterRenderedImage

        public BufferedImage filterRenderedImage​(RenderedImage src)
      • getBounds2D

        public Rectangle2D getBounds2D​(BufferedImage src)
        Specified by:
        getBounds2D in interface BufferedImageOp
      • getPoint2D

        public Point2D getPoint2D​(Point2D srcPt,
                                  Point2D dstPt)
        Specified by:
        getPoint2D in interface BufferedImageOp
      • getRenderingHints

        public RenderingHints getRenderingHints()
        Specified by:
        getRenderingHints in interface BufferedImageOp
      • getIcm

        public IndexColorModel getIcm()