- java.lang.Object
-
- ij.io.RoiEncoder
-
public class RoiEncoder extends java.lang.Object
Saves an ROI to a file or stream. RoiDecoder.java has a description of the file format.- See Also:
RoiDecoder
,RoiReader
-
-
Constructor Summary
Constructors Constructor Description RoiEncoder(java.io.OutputStream f)
Creates an RoiEncoder using the specified OutputStream.RoiEncoder(java.lang.String path)
Creates an RoiEncoder using the specified path.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
save(Roi roi, java.lang.String path)
Saves the specified ROI as a file, returning 'true' if successful.static byte[]
saveAsByteArray(Roi roi)
Saves the specified ROI as a byte array.void
write(Roi roi)
Save the Roi to the file of stream.
-
-
-
Method Detail
-
save
public static boolean save(Roi roi, java.lang.String path)
Saves the specified ROI as a file, returning 'true' if successful.
-
write
public void write(Roi roi) throws java.io.IOException
Save the Roi to the file of stream.- Throws:
java.io.IOException
-
saveAsByteArray
public static byte[] saveAsByteArray(Roi roi)
Saves the specified ROI as a byte array.
-
-