org.apache.fop.render.pdf

Class ImageRawJPEGAdapter

Implemented Interfaces:
PDFImage

public class ImageRawJPEGAdapter
extends AbstractImageAdapter

PDFImage implementation for the PDF renderer which handles raw JPEG images.

Field Summary

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

image

Constructor Summary

ImageRawJPEGAdapter(ImageRawJPEG image, String key)
Creates a new PDFImage from an Image instance.

Method Summary

int
getBitsPerComponent()
PDFDeviceColorSpace
getColorSpace()
String
getFilterHint()
ImageRawJPEG
getImage()
Returns the ImageRawJPEG instance for this adapter.
PDFFilter
getPDFFilter()
boolean
isInverted()
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

ImageRawJPEGAdapter

public ImageRawJPEGAdapter(ImageRawJPEG image,
                           String key)
Creates a new PDFImage from an Image instance.
Parameters:
image - the JPEG 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 ImageRawJPEG getImage()
Returns the ImageRawJPEG instance for this adapter.
Returns:
the image instance

getPDFFilter

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

isInverted

public boolean isInverted()
Specified by:
isInverted in interface PDFImage
Overrides:
isInverted in interface AbstractImageAdapter
Returns:
true for CMYK images generated by Adobe Photoshop

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.