org.apache.fop.render.pdf

Class ImageRawCCITTFaxAdapter

Implemented Interfaces:
PDFImage

public class ImageRawCCITTFaxAdapter
extends AbstractImageAdapter

PDFImage implementation for the PDF renderer which handles raw CCITT fax images.

Field Summary

Fields inherited from class org.apache.fop.render.pdf.AbstractImageAdapter

image

Constructor Summary

ImageRawCCITTFaxAdapter(ImageRawCCITTFax image, String key)
Creates a new PDFImage from an Image instance.

Method Summary

int
getBitsPerComponent()
PDFDeviceColorSpace
getColorSpace()
String
getFilterHint()
ImageRawCCITTFax
getImage()
Returns the ImageRawCCITTFax instance for this adapter.
PDFFilter
getPDFFilter()
void
outputContents(OutputStream out)
void
setup(PDFDocument doc)

Methods inherited from class org.apache.fop.render.pdf.AbstractImageAdapter

getHeight, getICCStream, getImageColorSpace, getKey, getMask, getSoftMask, getSoftMaskReference, getTransparentColor, getWidth, isInverted, isPS, isTransparent, populateXObjectDictionary, setup, toPDFColorSpace

Constructor Details

ImageRawCCITTFaxAdapter

public ImageRawCCITTFaxAdapter(ImageRawCCITTFax image,
                               String key)
Creates a new PDFImage from an Image instance.
Parameters:
image - the CCITT encoded image
key - XObject key

Method Details

getBitsPerComponent

public int getBitsPerComponent()
Specified by:
getBitsPerComponent in interface PDFImage

getColorSpace

public PDFDeviceColorSpace getColorSpace()
Specified by:
getColorSpace in interface PDFImage

getFilterHint

public String getFilterHint()
Specified by:
getFilterHint in interface PDFImage

getImage

public ImageRawCCITTFax getImage()
Returns the ImageRawCCITTFax instance for this adapter.
Returns:
the image instance

getPDFFilter

public PDFFilter getPDFFilter()
Specified by:
getPDFFilter in interface PDFImage

outputContents

public void outputContents(OutputStream out)
            throws IOException
Specified by:
outputContents in interface PDFImage

setup

public void setup(PDFDocument doc)
Specified by:
setup in interface PDFImage
Overrides:
setup in interface AbstractImageAdapter

Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.