com.sksamuel.scrimage.nio.ImageWriter Maven / Gradle / Ivy
package com.sksamuel.scrimage.nio;
import com.sksamuel.scrimage.AwtImage;
import com.sksamuel.scrimage.metadata.ImageMetadata;
import java.io.IOException;
import java.io.OutputStream;
/**
* Interface supporting writing of an Image to an array of bytes in a specified format, eg JPEG
*
* @see com.sksamuel.scrimage.nio.JpegWriter
* @see com.sksamuel.scrimage.nio.PngWriter
* @see com.sksamuel.scrimage.nio.GifWriter
*/
public interface ImageWriter {
void write(AwtImage image, ImageMetadata metadata, OutputStream out) throws IOException;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy