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.
  • Constructor Details

    • ImageRawCCITTFax

      public ImageRawCCITTFax(ImageInfo info, 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 Details

    • getColorSpace

      public 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