public final class LosslessFactory extends Object
Modifier and Type | Method and Description |
---|---|
static PDImageXObject |
createFromImage(PDDocument document,
BufferedImage image)
Creates a new lossless encoded Image XObject from a Buffered Image.
|
public static PDImageXObject createFromImage(PDDocument document, BufferedImage image) throws IOException
document
- the document where the image will be createdimage
- the buffered image to embedIOException
- if something goes wrongCopyright © 2002–2018 The Apache Software Foundation. All rights reserved.