org.apache.fop.pdf

Class AlphaRasterImage

Implemented Interfaces:
PDFImage

public class AlphaRasterImage
extends java.lang.Object
implements PDFImage

PDFImage implementation for alpha channel "images".

Constructor Summary

AlphaRasterImage(String k, Raster alpha)
Create a alpha channel image.
AlphaRasterImage(String k, RenderedImage image)
Create a alpha channel image.

Method Summary

int
getBitsPerComponent()
PDFDeviceColorSpace
getColorSpace()
String
getFilterHint()
int
getHeight()
PDFICCStream
getICCStream()
String
getKey()
String
getMask()
PDFFilter
getPDFFilter()
String
getSoftMask()
PDFReference
getSoftMaskReference()
PDFColor
getTransparentColor()
int
getWidth()
boolean
isInverted()
boolean
isPS()
boolean
isTransparent()
void
outputContents(OutputStream out)
void
populateXObjectDictionary(PDFDictionary dict)
void
setup(PDFDocument doc)

Constructor Details

AlphaRasterImage

public AlphaRasterImage(String k,
                        Raster alpha)
Create a alpha channel image. Creates a new bitmap image with the given data.
Parameters:
k - the key to be used to lookup the image
alpha - the alpha channel raster

AlphaRasterImage

public AlphaRasterImage(String k,
                        RenderedImage image)
Create a alpha channel image. Extracts the alpha channel from the RenderedImage and creates a new bitmap image with the given data.
Parameters:
k - the key to be used to lookup the image
image - the image (must have an alpha channel)

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

getHeight

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

getICCStream

public PDFICCStream getICCStream()
Specified by:
getICCStream in interface PDFImage

getKey

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

getMask

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

getPDFFilter

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

getSoftMask

public String getSoftMask()

getSoftMaskReference

public PDFReference getSoftMaskReference()
Specified by:
getSoftMaskReference in interface PDFImage

getTransparentColor

public PDFColor getTransparentColor()
Specified by:
getTransparentColor in interface PDFImage

getWidth

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

isInverted

public boolean isInverted()
Specified by:
isInverted in interface PDFImage

isPS

public boolean isPS()
Specified by:
isPS in interface PDFImage

isTransparent

public boolean isTransparent()
Specified by:
isTransparent in interface PDFImage

outputContents

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

populateXObjectDictionary

public void populateXObjectDictionary(PDFDictionary dict)
Specified by:
populateXObjectDictionary in interface PDFImage

setup

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

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