org.apache.xmlgraphics.image.loader.impl
Class ImageRawCCITTFax
java.lang.Object
org.apache.xmlgraphics.image.loader.impl.AbstractImage
org.apache.xmlgraphics.image.loader.impl.ImageRawStream
org.apache.xmlgraphics.image.loader.impl.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.
ImageRawCCITTFax
public ImageRawCCITTFax(ImageInfo info,
InputStream in,
int compression)
- Main constructor.
- Parameters:
info - the image info objectin - the ImageInputStream with the raw contentcompression - the integer value of the TIFF compression scheme
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
Copyright 1999-2012 The Apache Software Foundation. All Rights Reserved.