|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.newdawn.slick.imageout.ImageOut
public class ImageOut
A static hook to access all the Image output utilities. The list of format strings
provided is not the limit of capability. These are provided for utility, use @see getSupportedFormats()
for a full list of supported formats.
Field Summary | |
---|---|
static java.lang.String |
JPG
The format string for JPG |
static java.lang.String |
PNG
The format string for PNG |
static java.lang.String |
TGA
The format string for TGA |
Constructor Summary | |
---|---|
ImageOut()
|
Method Summary | |
---|---|
static java.lang.String[] |
getSupportedFormats()
Get a list of supported formats |
static void |
write(Image image,
java.lang.String dest)
Write an image out to a file on the local file system. |
static void |
write(Image image,
java.lang.String dest,
boolean writeAlpha)
Write an image out to a file on the local file system. |
static void |
write(Image image,
java.lang.String format,
java.io.OutputStream out)
Write an image out to a specified output stream |
static void |
write(Image image,
java.lang.String format,
java.io.OutputStream out,
boolean writeAlpha)
Write an image out to a specified output stream |
static void |
write(Image image,
java.lang.String format,
java.lang.String dest)
Write an image out to a file on the local file system. |
static void |
write(Image image,
java.lang.String format,
java.lang.String dest,
boolean writeAlpha)
Write an image out to a file on the local file system. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String TGA
public static java.lang.String PNG
public static java.lang.String JPG
Constructor Detail |
---|
public ImageOut()
Method Detail |
---|
public static java.lang.String[] getSupportedFormats()
ImageWriterFactory.getSupportedFormats()
public static void write(Image image, java.lang.String format, java.io.OutputStream out) throws SlickException
image
- The image to write out toformat
- The format to write the image out inout
- The output stream to which the image should be written
SlickException
- Indicates a failure to write the image in the specified formatpublic static void write(Image image, java.lang.String format, java.io.OutputStream out, boolean writeAlpha) throws SlickException
image
- The image to write out toformat
- The format to write the image out inout
- The output stream to which the image should be writtenwriteAlpha
- True if we should write the alpha channel out (some formats don't support this, like JPG)
SlickException
- Indicates a failure to write the image in the specified formatpublic static void write(Image image, java.lang.String dest) throws SlickException
image
- The image to be written outdest
- The destination path to write to
SlickException
- Indicates a failure to write the image in the determined formatpublic static void write(Image image, java.lang.String dest, boolean writeAlpha) throws SlickException
image
- The image to be written outdest
- The destination path to write towriteAlpha
- True if we should write the alpha channel out (some formats don't support this, like JPG)
SlickException
- Indicates a failure to write the image in the determined formatpublic static void write(Image image, java.lang.String format, java.lang.String dest) throws SlickException
image
- The image to be written outformat
- The format to write the image out indest
- The destination path to write to
SlickException
- Indicates a failure to write the image in the determined formatpublic static void write(Image image, java.lang.String format, java.lang.String dest, boolean writeAlpha) throws SlickException
image
- The image to be written outformat
- The format to write the image out indest
- The destination path to write towriteAlpha
- True if we should write the alpha channel out (some formats don't support this, like JPG)
SlickException
- Indicates a failure to write the image in the determined format
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |