com.lowagie.text.pdf

Class PdfImage

public class PdfImage extends PdfStream

PdfImage is a PdfStream containing an image-Dictionary and -stream.
Field Summary
protected PdfNamename
This is the PdfName of the image.
static intTRANSFERSIZE
Constructor Summary
PdfImage(Image image, String name, PdfIndirectReference maskRef)
Constructs a PdfImage-object.
Method Summary
protected voidimportAll(PdfImage dup)
PdfNamename()
Returns the PdfName of the image.
static voidtransferBytes(InputStream in, OutputStream out, int len)

Field Detail

name

protected PdfName name
This is the PdfName of the image.

TRANSFERSIZE

static final int TRANSFERSIZE

Constructor Detail

PdfImage

public PdfImage(Image image, String name, PdfIndirectReference maskRef)
Constructs a PdfImage-object.

Parameters: image the Image-object name the PdfName for this image

Throws: BadPdfFormatException on error

Method Detail

importAll

protected void importAll(PdfImage dup)

name

public PdfName name()
Returns the PdfName of the image.

Returns: the name

transferBytes

static void transferBytes(InputStream in, OutputStream out, int len)