MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / write

Method write

ij/src/main/java/ij/io/RoiEncoder.java:72–80  ·  view source on GitHub ↗

Save the Roi to the file of stream.

(Roi roi)

Source from the content-addressed store, hash-verified

70
71 /** Save the Roi to the file of stream. */
72 public void write(Roi roi) throws IOException {
73 if (f!=null) {
74 write(roi, f);
75 } else {
76 f = new FileOutputStream(path);
77 write(roi, f);
78 f.close();
79 }
80 }
81
82 /** Saves the specified ROI as a byte array. */
83 public static byte[] saveAsByteArray(Roi roi) {

Callers 5

saveOneMethod · 0.95
saveMultipleMethod · 0.95
saveRoiMethod · 0.95
saveMethod · 0.95
saveAsByteArrayMethod · 0.95

Calls 15

saveShapeRoiMethod · 0.95
isSplineFitMethod · 0.95
putShortMethod · 0.95
putFloatMethod · 0.95
putIntMethod · 0.95
putByteMethod · 0.95
getPointTypeMethod · 0.95
getSizeMethod · 0.95
getShowLabelsMethod · 0.95
promptBeforeDeletingMethod · 0.95

Tested by

no test coverage detected