mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-11 06:11:50 +09:00
added sources for Slick
Former-commit-id: 1647fa32ef6894bd7db44f741f07c2f4dcdf9054 Former-commit-id: 0e5810dcfbe1fd59b13e7cabe9f1e93c5542da2d
This commit is contained in:
25
lib/slick-source/org/newdawn/slick/imageout/ImageWriter.java
Normal file
25
lib/slick-source/org/newdawn/slick/imageout/ImageWriter.java
Normal file
@@ -0,0 +1,25 @@
|
||||
package org.newdawn.slick.imageout;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.OutputStream;
|
||||
|
||||
import org.newdawn.slick.Image;
|
||||
|
||||
/**
|
||||
* The description of any class that can produce data to an output stream reprsenting
|
||||
* some image in memory.
|
||||
*
|
||||
* @author Jon
|
||||
*/
|
||||
public interface ImageWriter {
|
||||
/**
|
||||
* Save an Image to an given location
|
||||
*
|
||||
* @param image The image to be written
|
||||
* @param format The format that this writer is expected to be produced in
|
||||
* @param out The output stream to which the image data should be written
|
||||
* @param writeAlpha True if we should write alpha information to the file
|
||||
* @throws IOException Indicates a failure to write out the image to the specified location
|
||||
*/
|
||||
void saveImage(Image image, String format, OutputStream out, boolean writeAlpha) throws IOException;
|
||||
}
|
||||
Reference in New Issue
Block a user