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
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class ImageRawStream
ImageRawStream.ByteArrayStreamFactory, ImageRawStream.InputStreamFactory -
Constructor Summary
ConstructorsConstructorDescriptionImageRawCCITTFax(ImageInfo info, InputStream in, int compression) Main constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the image's color spaceintReturns the TIFF compression scheme.Methods inherited from class ImageRawStream
createInputStream, getFlavor, getMimeType, isCacheable, setInputStreamFactory, writeToMethods inherited from class AbstractImage
getICCProfile, getInfo, getSize, toString
-
Constructor Details
-
ImageRawCCITTFax
Main constructor.- Parameters:
info- the image info objectin- the ImageInputStream with the raw contentcompression- the integer value of the TIFF compression scheme
-
-
Method Details
-
getColorSpace
Returns the image's color space- Specified by:
getColorSpacein interfaceImage- Overrides:
getColorSpacein classAbstractImage- Returns:
- the color space
-
getCompression
public int getCompression()Returns the TIFF compression scheme.- Returns:
- the TIFF compression scheme
-