public final class ImageWriterUtil
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static void saveAsPNG(java.awt.image.RenderedImage bitmap,
java.io.File outputFile)
throws java.io.IOException
bitmap - the bitmap to encodeoutputFile - the target filejava.io.IOException - in case of an I/O problempublic 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 filejava.io.IOException - in case of an I/O problempublic 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 filejava.io.IOException - in case of an I/O problemCopyright 1999-2025 The Apache Software Foundation. All Rights Reserved.