Class PNG
Object
org.anchoranalysis.bean.AnchorBean<StackWriter>
org.anchoranalysis.image.io.bean.stack.writer.StackWriter
org.anchoranalysis.io.imagej.bean.stack.writer.ImageJRasterWriter
org.anchoranalysis.io.imagej.bean.stack.writer.PNG
public class PNG extends ImageJRasterWriter
Writes a PNG image using ImageJ.
The extension .png is employed by default.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description PNG() -
Method Summary
Modifier and Type Method Description ImageFileFormatfileFormat(StackWriteOptions writeOptions)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 ImageIOExceptionDescription 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
- Specified by:
fileFormatin classStackWriter
-