public class RoiEncoder
extends java.lang.Object
RoiDecoder
,
RoiReader
Constructor and 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.
|
Modifier and Type | Method and 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.
|
public RoiEncoder(java.lang.String path)
public RoiEncoder(java.io.OutputStream f)
public static boolean save(Roi roi, java.lang.String path)
public void write(Roi roi) throws java.io.IOException
java.io.IOException
public static byte[] saveAsByteArray(Roi roi)