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

Method save

ij/src/main/java/ij/plugin/GifWriter.java:20–31  ·  view source on GitHub ↗

Saves the specified image in GIF format or as an animated GIF if the image is a stack.

(ImagePlus imp, String path)

Source from the content-addressed store, hash-verified

18
19 /** Saves the specified image in GIF format or as an animated GIF if the image is a stack. */
20 public static String save(ImagePlus imp, String path) {
21 if (imp==null)
22 imp = IJ.getImage();
23 if (path==null || path.length()==0)
24 path = SaveDialog.getPath(imp, ".gif");
25 if (path==null)
26 return null;
27 GifWriter gf = new GifWriter();
28 //gf.showErrors = false;
29 gf.run(imp, path);
30 return gf.error;
31 }
32
33 public void run(String path) {
34 ImagePlus imp = IJ.getImage();

Callers 3

saveAsMethod · 0.95
actionPerformedMethod · 0.95
saveAllMethod · 0.95

Calls 4

getImageMethod · 0.95
getPathMethod · 0.95
runMethod · 0.95
lengthMethod · 0.65

Tested by

no test coverage detected