Class ImageRawCCITTFax

  • All Implemented Interfaces:
    Image

    public class ImageRawCCITTFax
    extends ImageRawStream
    This class is an implementation of the Image interface exposing a 1-bit bitmap image stream that can be decoded by the PostScript or PDF CCITTFaxDecode filter.
    • Field Detail

      • compression

        private int compression
    • Constructor Detail

      • ImageRawCCITTFax

        public ImageRawCCITTFax​(ImageInfo info,
                                java.io.InputStream in,
                                int compression)
        Main constructor.
        Parameters:
        info - the image info object
        in - the ImageInputStream with the raw content
        compression - the integer value of the TIFF compression scheme
    • Method Detail

      • getColorSpace

        public java.awt.color.ColorSpace getColorSpace()
        Returns the image's color space
        Specified by:
        getColorSpace in interface Image
        Overrides:
        getColorSpace in class AbstractImage
        Returns:
        the color space
      • getCompression

        public int getCompression()
        Returns the TIFF compression scheme.
        Returns:
        the TIFF compression scheme