org.freehep.graphicsio.raw.RawImageWriterSpi 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.raw;
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/raw/RawImageWriterSpi.java 381498a7681c 2006/12/04 15:41:17 duns $
*/
public class RawImageWriterSpi extends ImageWriterSpi {
public RawImageWriterSpi() {
super("FreeHEP Java Libraries, http://java.freehep.org/", "1.0",
new String[] { "raw" }, new String[] { "raw" },
new String[] { "image/x-raw" },
"org.freehep.graphicsio.raw.RawImageWriter",
STANDARD_OUTPUT_TYPE, null, false, null, null, null, null,
false, null, null, null, null);
}
public String getDescription(Locale locale) {
return "FreeHEP RAW Image Format";
}
public ImageWriter createWriterInstance(Object extension)
throws IOException {
return new RawImageWriter(this);
}
public boolean canEncodeImage(ImageTypeSpecifier type) {
// FIXME
return true;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy