|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.pdfbox.util.ImageIOUtil
public class ImageIOUtil
This class handles some ImageIO operations.
| Method Summary | |
|---|---|
static boolean |
writeImage(BufferedImage image,
String imageFormat,
OutputStream outputStream)
Writes a buffered image to a file using the given image format. |
static boolean |
writeImage(BufferedImage image,
String imageFormat,
String filename,
int imageType,
int resolution)
Writes a buffered image to a file using the given image format. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean writeImage(BufferedImage image,
String imageFormat,
String filename,
int imageType,
int resolution)
throws 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)
IOException - if an I/O error occurs
public static boolean writeImage(BufferedImage image,
String imageFormat,
OutputStream outputStream)
throws IOException
image - the image to be writtenimageFormat - the target format (ex. "png")outputStream - the output stream to be used for writing
IOException - if an I/O error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||