(ImagePlus imp)
| 67 | } |
| 68 | |
| 69 | void print(ImagePlus imp) { |
| 70 | PrinterJob pj = PrinterJob.getPrinterJob(); |
| 71 | pj.setPrintable(this); |
| 72 | //pj.pageDialog(pj.defaultPage()); |
| 73 | if (IJ.macroRunning() || pj.printDialog()) { |
| 74 | imp.startTiming(); |
| 75 | try {pj.print(); } |
| 76 | catch (PrinterException e) { |
| 77 | IJ.log(""+e); |
| 78 | } |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | @Override |
| 83 | public int print(Graphics g, PageFormat pf, int pageIndex) { |
no test coverage detected