|
xmlgraphics-commons 2.3 | |||||||||
| 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(java.awt.image.RenderedImage bitmap,
int resolution,
java.io.File outputFile,
java.lang.String mime)
Saves a RenderedImage as a file. |
static void |
saveAsPNG(java.awt.image.RenderedImage bitmap,
java.io.File outputFile)
Saves a RenderedImage as a PNG file with 96 dpi. |
static void |
saveAsPNG(java.awt.image.RenderedImage bitmap,
int resolution,
java.io.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(java.awt.image.RenderedImage bitmap,
java.io.File outputFile)
throws java.io.IOException
bitmap - the bitmap to encodeoutputFile - the target file
java.io.IOException - in case of an I/O problem
public static void saveAsPNG(java.awt.image.RenderedImage bitmap,
int resolution,
java.io.File outputFile)
throws java.io.IOException
bitmap - the bitmap to encoderesolution - the bitmap resolutionoutputFile - the target file
java.io.IOException - in case of an I/O problem
public static void saveAsFile(java.awt.image.RenderedImage bitmap,
int resolution,
java.io.File outputFile,
java.lang.String mime)
throws java.io.IOException
bitmap - the bitmap to encoderesolution - the bitmap resolutionoutputFile - the target filemime - the MIME type of the target file
java.io.IOException - in case of an I/O problem
|
xmlgraphics-commons 2.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||