public class PNG extends ImageJRasterWriter
Writes a PNG image using ImageJ.

The extension .png is employed by default.

Author:
Owen Feehan
  • 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 at outPath.
      Specified by:
      writeRaster in class ImageJRasterWriter
      Parameters:
      fileSaver - imagej class for saving files
      path - where to write the annotation to
      asStack - 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

      public ImageFileFormat fileFormat(StackWriteOptions writeOptions)
      Description copied from class: StackWriter
      The file format that will be written by the generator.
      Specified by:
      fileFormat in class StackWriter
      Parameters:
      writeOptions - options which may influence how a raster is written.
      Returns:
      the image file-format.