RoiEncoder
ij.io

Class RoiEncoder



  • public class RoiEncoderextends Object
    Saves an ROI to a file or stream. RoiDecoder.java has a description of the file format.
    See Also:
    RoiDecoder, RoiReader
    • Constructor Detail

      • RoiEncoder

        public RoiEncoder(String path)
        Creates an RoiEncoder using the specified path.
      • RoiEncoder

        public RoiEncoder(OutputStream f)
        Creates an RoiEncoder using the specified OutputStream.
    • Method Detail

      • write

        public void write(ij.gui.Roi roi)           throws IOException
        Save the Roi to the file of stream.
        Throws:
        IOException
      • saveAsByteArray

        public static byte[] saveAsByteArray(ij.gui.Roi roi)
        Saves the specified ROI as a byte array.

SCaVis 1.7 © jWork.org