Package com.lowagie.text.pdf
Class PdfImage
- java.lang.Object
-
- com.lowagie.text.pdf.PdfObject
-
- com.lowagie.text.pdf.PdfDictionary
-
- com.lowagie.text.pdf.PdfStream
-
- com.lowagie.text.pdf.PdfImage
-
public class PdfImage extends PdfStream
PdfImage
is aPdfStream
containing an image-Dictionary
and -stream.
-
-
Field Summary
Fields Modifier and Type Field Description protected PdfName
name
This is thePdfName
of the image.(package private) static int
TRANSFERSIZE
-
Fields inherited from class com.lowagie.text.pdf.PdfStream
BEST_COMPRESSION, BEST_SPEED, compressed, compressionLevel, DEFAULT_COMPRESSION, ENDSTREAM, inputStream, inputStreamLength, NO_COMPRESSION, rawLength, ref, SIZESTREAM, STARTSTREAM, streamBytes, writer
-
-
Constructor Summary
Constructors Constructor Description PdfImage(Image image, java.lang.String name, PdfIndirectReference maskRef)
Constructs aPdfImage
-object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
importAll(PdfImage dup)
PdfName
name()
Returns thePdfName
of the image.(package private) static void
transferBytes(java.io.InputStream in, java.io.OutputStream out, int len)
-
Methods inherited from class com.lowagie.text.pdf.PdfStream
flateCompress, flateCompress, getRawLength, superToPdf, toPdf, toString, writeContent, writeLength
-
Methods inherited from class com.lowagie.text.pdf.PdfDictionary
clear, contains, get, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsStream, getAsString, getDirectObject, getKeys, getKeysAndValues, isCatalog, isFont, isOutlineTree, isPage, isPages, merge, mergeDifferent, put, putAll, putEx, remove, size
-
Methods inherited from class com.lowagie.text.pdf.PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type
-
-
-
-
Field Detail
-
TRANSFERSIZE
static final int TRANSFERSIZE
- See Also:
- Constant Field Values
-
name
protected PdfName name
This is thePdfName
of the image.
-
-
Constructor Detail
-
PdfImage
public PdfImage(Image image, java.lang.String name, PdfIndirectReference maskRef) throws BadPdfFormatException
Constructs aPdfImage
-object.- Parameters:
image
- theImage
-objectname
- thePdfName
for this imagemaskRef
- thePdfIndirectReference
- Throws:
BadPdfFormatException
- on error
-
-