Class PDFImage.DecodeComponentColorModel

  • All Implemented Interfaces:
    java.awt.Transparency
    Enclosing class:
    PDFImage

    class PDFImage.DecodeComponentColorModel
    extends java.awt.image.ComponentColorModel
    A wrapper for ComponentColorSpace which normalizes based on the decode array.
    • Field Summary

      • Fields inherited from class java.awt.image.ColorModel

        pixel_bits, transferType
      • Fields inherited from interface java.awt.Transparency

        BITMASK, OPAQUE, TRANSLUCENT
    • Constructor Summary

      Constructors 
      Constructor Description
      DecodeComponentColorModel​(java.awt.color.ColorSpace cs, int[] bpc)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.image.SampleModel createCompatibleSampleModel​(int width, int height)  
      float[] getNormalizedComponents​(java.lang.Object pixel, float[] normComponents, int normOffset)  
      boolean isCompatibleRaster​(java.awt.image.Raster raster)  
      • Methods inherited from class java.awt.image.ComponentColorModel

        coerceData, createCompatibleWritableRaster, equals, getAlpha, getAlpha, getAlphaRaster, getBlue, getBlue, getComponents, getComponents, getDataElement, getDataElement, getDataElements, getDataElements, getDataElements, getGreen, getGreen, getNormalizedComponents, getRed, getRed, getRGB, getRGB, getUnnormalizedComponents, hashCode, isCompatibleSampleModel
      • Methods inherited from class java.awt.image.ColorModel

        finalize, getColorSpace, getComponentSize, getComponentSize, getNumColorComponents, getNumComponents, getPixelSize, getRGBdefault, getTransferType, getTransparency, hasAlpha, isAlphaPremultiplied, toString
      • Methods inherited from class java.lang.Object

        clone, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DecodeComponentColorModel

        public DecodeComponentColorModel​(java.awt.color.ColorSpace cs,
                                         int[] bpc)
    • Method Detail

      • createCompatibleSampleModel

        public java.awt.image.SampleModel createCompatibleSampleModel​(int width,
                                                                      int height)
        Overrides:
        createCompatibleSampleModel in class java.awt.image.ComponentColorModel
      • isCompatibleRaster

        public boolean isCompatibleRaster​(java.awt.image.Raster raster)
        Overrides:
        isCompatibleRaster in class java.awt.image.ComponentColorModel
      • getNormalizedComponents

        public float[] getNormalizedComponents​(java.lang.Object pixel,
                                               float[] normComponents,
                                               int normOffset)
        Overrides:
        getNormalizedComponents in class java.awt.image.ComponentColorModel