public class ImageRawCCITTFaxAdapter extends AbstractImageAdapter
image
Constructor and Description |
---|
ImageRawCCITTFaxAdapter(org.apache.xmlgraphics.image.loader.impl.ImageRawCCITTFax image,
String key)
Creates a new PDFImage from an Image instance.
|
Modifier and Type | Method and Description |
---|---|
int |
getBitsPerComponent()
Get the bits per color component for this image.
|
PDFDeviceColorSpace |
getColorSpace()
Get the color space for this image.
|
String |
getFilterHint()
Returns a hint in form of a String (Possible values from PDFFilterList)
indicating which filter setup should be used to encode the object.
|
org.apache.xmlgraphics.image.loader.impl.ImageRawCCITTFax |
getImage()
Returns the
ImageRawCCITTFax instance for this adapter. |
PDFFilter |
getPDFFilter()
Get the PDF Filter to be applied to the image.
|
void |
outputContents(OutputStream out)
Writes the raw, unencoded contents of the image to a given output stream.
|
void |
setup(PDFDocument doc)
Setup the PDF image for the current document.
|
disallowMultipleFilters, getEffectiveICCProfile, getHeight, getICCStream, getImageColorSpace, getKey, getMask, getSoftMask, getSoftMaskReference, getTransparentColor, getWidth, isInverted, isPS, issRGB, isTransparent, multipleFiltersAllowed, populateXObjectDictionary, populateXObjectDictionaryForIndexColorModel, toPDFColorSpace
public ImageRawCCITTFaxAdapter(org.apache.xmlgraphics.image.loader.impl.ImageRawCCITTFax image, String key)
image
- the CCITT encoded imagekey
- XObject keypublic org.apache.xmlgraphics.image.loader.impl.ImageRawCCITTFax getImage()
ImageRawCCITTFax
instance for this adapter.public void setup(PDFDocument doc)
setup
in interface PDFImage
setup
in class AbstractImageAdapter
doc
- the PDF parent document
(todo) Remove this and delegate to the XObjectpublic PDFDeviceColorSpace getColorSpace()
public int getBitsPerComponent()
public PDFFilter getPDFFilter()
public void outputContents(OutputStream out) throws IOException
out
- OutputStream to write toIOException
- if there creating streampublic String getFilterHint()
Copyright © 2025 Apache Software Foundation. All rights reserved.