Class PNG
Writes a PNG image using ImageJ.
The extension .png is employed by default.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfileFormat(StackWriteOptions writeOptions) The file format that will be written by the generator.protected booleanwriteRaster(ij.io.FileSaver fileSaver, String path, boolean asStack) Writes an annotation to the filesystem atoutPath.Methods inherited from class org.anchoranalysis.io.imagej.bean.stack.writer.ImageJRasterWriter
writeStack, writeStackTimeMethods inherited from class org.anchoranalysis.image.io.bean.stack.writer.StackWriter
fileFormatWarnUnexpected, writeStackWithExtensionMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
PNG
public PNG()
-
-
Method Details
-
writeRaster
protected boolean writeRaster(ij.io.FileSaver fileSaver, String path, boolean asStack) throws ImageIOException Description copied from class:ImageJRasterWriterWrites an annotation to the filesystem atoutPath.- Specified by:
writeRasterin classImageJRasterWriter- Parameters:
fileSaver- imagej class for saving filespath- where to write the annotation toasStack- whether the output will produce a stack (many images together) or not.- Returns:
- true if successfully written.
- Throws:
ImageIOException- if anything goes wrong writing the input.
-
fileFormat
Description copied from class:StackWriterThe file format that will be written by the generator.- Specified by:
fileFormatin classStackWriter- Parameters:
writeOptions- options which may influence how a raster is written.- Returns:
- the image file-format.
-