All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.davidmoten.grumpy.wms.ImageWriterDefault Maven / Gradle / Ivy

There is a newer version: 0.4.8
Show newest version
package com.github.davidmoten.grumpy.wms;

import java.awt.image.BufferedImage;
import java.io.IOException;
import java.io.OutputStream;

import javax.imageio.ImageIO;

/**
 * Writes images using {@link ImageIO}. This can be a bit slow. Significant
 * performance gains have been obtained using PNGEncoder). An implementation
 * has not been included with grumpy because the library is not open source.
 */
public class ImageWriterDefault implements ImageWriter {

    @Override
    public void writeImage(BufferedImage image, OutputStream os, String imageType) throws IOException {
        ImageIO.write(image, imageType, os);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy