org.freehep.graphicsio.gif.GIFImageWriterSpi Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of freehep-graphicsio Show documentation
Show all versions of freehep-graphicsio Show documentation
FreeHEP GraphicsIO Base Library
The newest version!
// Copyright 2003-2006, FreeHEP
package org.freehep.graphicsio.gif;
import java.io.IOException;
import java.util.Locale;
import javax.imageio.ImageTypeSpecifier;
import javax.imageio.ImageWriter;
import javax.imageio.spi.ImageWriterSpi;
/**
*
* @version $Id: freehep-graphicsio/src/main/java/org/freehep/graphicsio/gif/GIFImageWriterSpi.java 19ee023ce098 2006/12/04 07:44:04 duns $
*/
public class GIFImageWriterSpi extends ImageWriterSpi {
public GIFImageWriterSpi() {
super("FreeHEP Java Libraries, http://java.freehep.org/", "1.0",
new String[] { "gif" }, new String[] { "gif" },
new String[] { "image/gif", "image/x-gif" },
"org.freehep.graphicsio.gif.GIFImageWriter",
STANDARD_OUTPUT_TYPE, null, false, null, null, null, null,
false, null, null, null, null);
}
public String getDescription(Locale locale) {
return "FreeHEP Graphics Interchange Format";
}
public ImageWriter createWriterInstance(Object extension)
throws IOException {
return new GIFImageWriter(this);
}
public boolean canEncodeImage(ImageTypeSpecifier type) {
return true;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy