Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
epoxy
GitHub Repository: epoxy/proj11
Path: blob/master/SLICK_HOME/src/org/newdawn/slick/imageout/ImageWriter.java
1461 views
1
package org.newdawn.slick.imageout;
2
3
import java.io.IOException;
4
import java.io.OutputStream;
5
6
import org.newdawn.slick.Image;
7
8
/**
9
* The description of any class that can produce data to an output stream reprsenting
10
* some image in memory.
11
*
12
* @author Jon
13
*/
14
public interface ImageWriter {
15
/**
16
* Save an Image to an given location
17
*
18
* @param image The image to be written
19
* @param format The format that this writer is expected to be produced in
20
* @param out The output stream to which the image data should be written
21
* @param writeAlpha True if we should write alpha information to the file
22
* @throws IOException Indicates a failure to write out the image to the specified location
23
*/
24
void saveImage(Image image, String format, OutputStream out, boolean writeAlpha) throws IOException;
25
}
26
27