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

Method run

ij/src/main/java/ij/plugin/BMP_Writer.java:46–61  ·  view source on GitHub ↗
(String path)

Source from the content-addressed store, hash-verified

44 ImagePlus imp;
45
46 public void run(String path) {
47 IJ.showProgress(0);
48 imp = WindowManager.getCurrentImage();
49 if (imp==null)
50 {IJ.noImage(); return;}
51 try {
52 writeImage(imp, path);
53 } catch (Exception e) {
54 String msg = e.getMessage();
55 if (msg==null || msg.equals(""))
56 msg = ""+e;
57 IJ.error("BMP Writer", "An error occured writing the file.\n \n" + msg);
58 }
59 IJ.showProgress(1);
60 IJ.showStatus("");
61 }
62
63 void writeImage(ImagePlus imp, String path) throws Exception {
64 if(imp.getBitDepth()==24)

Callers

nothing calls this directly

Calls 8

showProgressMethod · 0.95
getCurrentImageMethod · 0.95
noImageMethod · 0.95
writeImageMethod · 0.95
errorMethod · 0.95
showStatusMethod · 0.95
getMessageMethod · 0.45
equalsMethod · 0.45

Tested by

no test coverage detected