public class PDFImageFactory extends java.lang.Object implements ImageFactory
Constructor and Description |
---|
PDFImageFactory() |
Modifier and Type | Method and Description |
---|---|
byte[] |
expandBitmapBits(byte[] streamBytes,
int width,
int height) |
java.awt.Image |
getImage(PDFStream imageStream,
java.awt.color.ColorSpace cspace,
PDFFile srcfile)
Given a pdf xobject dictionary, return an awt Image object
|
@Nullable public java.awt.Image getImage(PDFStream imageStream, java.awt.color.ColorSpace cspace, PDFFile srcfile)
ImageFactory
getImage
in interface ImageFactory
public byte[] expandBitmapBits(byte[] streamBytes, int width, int height)