(ImagePlus imp, String extension)
| 279 | } |
| 280 | |
| 281 | public static String getPath(ImagePlus imp, String extension) { |
| 282 | String title = imp!=null?imp.getTitle():"Untitled"; |
| 283 | SaveDialog sd = new SaveDialog("Save As", title, extension); |
| 284 | if (sd.getFileName()==null) |
| 285 | return null; |
| 286 | else |
| 287 | return sd.getDirectory()+sd.getFileName(); |
| 288 | } |
| 289 | |
| 290 | } |
no test coverage detected