|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.newdawn.slick.imageout.ImageWriterFactory
public class ImageWriterFactory
A factory to produce image writers based on format names
Constructor Summary | |
---|---|
ImageWriterFactory()
|
Method Summary | |
---|---|
static java.lang.String[] |
getSupportedFormats()
Get the list of support format strings for this factory |
static ImageWriter |
getWriterForFormat(java.lang.String format)
Get a Slick image writer for the given format |
static void |
registerWriter(java.lang.String format,
ImageWriter writer)
Register an image writer with the factory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageWriterFactory()
Method Detail |
---|
public static void registerWriter(java.lang.String format, ImageWriter writer)
format
- The format (usually extension) of the files that will be written outwriter
- The writer to use for the given formatpublic static java.lang.String[] getSupportedFormats()
public static ImageWriter getWriterForFormat(java.lang.String format) throws SlickException
format
- The format of the image to write
SlickException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |