|
xmlgraphics-commons 2.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xmlgraphics.image.writer.ImageWriterUtil
public final class ImageWriterUtil
Convenience methods around ImageWriter for the most important tasks.
| Method Summary | |
|---|---|
static void |
saveAsFile(RenderedImage bitmap,
int resolution,
File outputFile,
String mime)
Saves a RenderedImage as a file. |
static void |
saveAsPNG(RenderedImage bitmap,
File outputFile)
Saves a RenderedImage as a PNG file with 96 dpi. |
static void |
saveAsPNG(RenderedImage bitmap,
int resolution,
File outputFile)
Saves a RenderedImage as a PNG file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void saveAsPNG(RenderedImage bitmap,
File outputFile)
throws IOException
bitmap - the bitmap to encodeoutputFile - the target file
IOException - in case of an I/O problem
public static void saveAsPNG(RenderedImage bitmap,
int resolution,
File outputFile)
throws IOException
bitmap - the bitmap to encoderesolution - the bitmap resolutionoutputFile - the target file
IOException - in case of an I/O problem
public static void saveAsFile(RenderedImage bitmap,
int resolution,
File outputFile,
String mime)
throws IOException
bitmap - the bitmap to encoderesolution - the bitmap resolutionoutputFile - the target filemime - the MIME type of the target file
IOException - in case of an I/O problem
|
xmlgraphics-commons 2.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||