org.apache.pdfbox.util
public class ImageIOUtil extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
writeImage(java.awt.image.BufferedImage image,
java.lang.String imageFormat,
java.io.OutputStream outputStream)
Writes a buffered image to a file using the given image format.
|
static boolean |
writeImage(java.awt.image.BufferedImage image,
java.lang.String imageFormat,
java.lang.String filename,
int imageType,
int resolution)
Writes a buffered image to a file using the given image format.
|
public static boolean writeImage(java.awt.image.BufferedImage image,
java.lang.String imageFormat,
java.lang.String filename,
int imageType,
int resolution)
throws java.io.IOException
image - the image to be writtenimageFormat - the target format (ex. "png")filename - used to construct the filename for the individual imagesimageType - the image type (see BufferedImage.TYPE_*)resolution - the resolution in dpi (dots per inch)java.io.IOException - if an I/O error occurspublic static boolean writeImage(java.awt.image.BufferedImage image,
java.lang.String imageFormat,
java.io.OutputStream outputStream)
throws java.io.IOException
image - the image to be writtenimageFormat - the target format (ex. "png")outputStream - the output stream to be used for writingjava.io.IOException - if an I/O error occurs