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

Method save

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

Saves the specified ROI as a file, returning 'true' if successful.

(Roi roi, String path)

Source from the content-addressed store, hash-verified

59
60 /** Saves the specified ROI as a file, returning 'true' if successful. */
61 public static boolean save(Roi roi, String path) {
62 RoiEncoder re = new RoiEncoder(path);
63 try {
64 re.write(roi);
65 } catch (IOException e) {
66 return false;
67 }
68 return true;
69 }
70
71 /** Save the Roi to the file of stream. */
72 public void write(Roi roi) throws IOException {

Callers

nothing calls this directly

Calls 1

writeMethod · 0.95

Tested by

no test coverage detected