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

Method save

ij/src/main/java/ij/plugin/JpegWriter.java:38–47  ·  view source on GitHub ↗

Thread-safe method.

(ImagePlus imp, String path, int quality)

Source from the content-addressed store, hash-verified

36
37 /** Thread-safe method. */
38 public static String save(ImagePlus imp, String path, int quality) {
39 if (imp==null)
40 imp = IJ.getImage();
41 if (path==null || path.length()==0)
42 path = SaveDialog.getPath(imp, ".jpg");
43 if (path==null)
44 return null;
45 String error = (new JpegWriter()).saveAsJpeg(imp, path, quality);
46 return error;
47 }
48
49 String saveAsJpeg(ImagePlus imp, String path, int quality) {
50 int width = imp.getWidth();

Callers 2

saveAsMethod · 0.95
saveAsJpegMethod · 0.95

Calls 4

getImageMethod · 0.95
getPathMethod · 0.95
lengthMethod · 0.65
saveAsJpegMethod · 0.45

Tested by

no test coverage detected