Path: blob/master/SLICK_HOME/src/org/newdawn/slick/imageout/ImageWriter.java
1461 views
package org.newdawn.slick.imageout;12import java.io.IOException;3import java.io.OutputStream;45import org.newdawn.slick.Image;67/**8* The description of any class that can produce data to an output stream reprsenting9* some image in memory.10*11* @author Jon12*/13public interface ImageWriter {14/**15* Save an Image to an given location16*17* @param image The image to be written18* @param format The format that this writer is expected to be produced in19* @param out The output stream to which the image data should be written20* @param writeAlpha True if we should write alpha information to the file21* @throws IOException Indicates a failure to write out the image to the specified location22*/23void saveImage(Image image, String format, OutputStream out, boolean writeAlpha) throws IOException;24}252627