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

Method save

ij/src/main/java/ij/plugin/Commands.java:68–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66 }
67
68 void save() {
69 ImagePlus imp = WindowManager.getCurrentImage();
70 if (imp!=null) {
71 if (imp.getStackSize()>1) {
72 imp.setIgnoreFlush(true);
73 new FileSaver(imp).save();
74 imp.setIgnoreFlush(false);
75 } else
76 new FileSaver(imp).save();
77 } else
78 IJ.noImage();
79 }
80
81 void undo() {
82 ImagePlus imp = WindowManager.getCurrentImage();

Callers 1

runMethod · 0.95

Calls 4

getCurrentImageMethod · 0.95
getStackSizeMethod · 0.95
setIgnoreFlushMethod · 0.95
noImageMethod · 0.95

Tested by

no test coverage detected