com.github.mathiewz.slick.imageout.ImageWriter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of modernized-slick Show documentation
Show all versions of modernized-slick Show documentation
The main purpose of this libraryis to modernize and maintain the slick2D library.
The newest version!
package com.github.mathiewz.slick.imageout;
import java.io.IOException;
import java.io.OutputStream;
import com.github.mathiewz.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;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy