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 boolean
writeRaster
(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, writeStackTime
Methods inherited from class org.anchoranalysis.image.io.bean.stack.writer.StackWriter
fileFormatWarnUnexpected, writeStackWithExtension
Methods 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:ImageJRasterWriter
Writes an annotation to the filesystem atoutPath
.- Specified by:
writeRaster
in 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:StackWriter
The file format that will be written by the generator.- Specified by:
fileFormat
in classStackWriter
- Parameters:
writeOptions
- options which may influence how a raster is written.- Returns:
- the image file-format.
-