org.apache.fop.pdf
Class AlphaRasterImage
java.lang.Object
org.apache.fop.pdf.AlphaRasterImage
- PDFImage
public class AlphaRasterImage
extends java.lang.Object
PDFImage implementation for alpha channel "images".
AlphaRasterImage
public AlphaRasterImage(String k,
Raster alpha)
Create a alpha channel image.
Creates a new bitmap image with the given data.
k
- the key to be used to lookup the imagealpha
- 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.
k
- the key to be used to lookup the imageimage
- the image (must have an alpha channel)
getSoftMask
public String getSoftMask()
outputContents
public void outputContents(OutputStream out)
throws IOException
- outputContents in interface PDFImage
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.