Class LosslessFactory
- java.lang.Object
-
- com.tom_roush.pdfbox.pdmodel.graphics.image.LosslessFactory
-
public final class LosslessFactory extends Object
Factory for creating a PDImageXObject containing a lossless compressed image.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PDImageXObjectcreateFromImage(PDDocument document, android.graphics.Bitmap image)Creates a new lossless encoded Image XObject from a Buffered Image.
-
-
-
Method Detail
-
createFromImage
public static PDImageXObject createFromImage(PDDocument document, android.graphics.Bitmap image) throws IOException
Creates a new lossless encoded Image XObject from a Buffered Image.- Parameters:
document- the document where the image will be createdimage- the buffered image to embed- Returns:
- a new Image XObject
- Throws:
IOException- if something goes wrong
-
-