(ImagePlus imp, String path, int transparentIndex)
| 113 | } |
| 114 | |
| 115 | private void writeImage(ImagePlus imp, String path, int transparentIndex) throws Exception { |
| 116 | if (transparentIndex>=0 && transparentIndex<=255) |
| 117 | writeImageWithTransparency(imp, path, transparentIndex); |
| 118 | else |
| 119 | ImageIO.write(imp.getBufferedImage(), "gif", new File(path)); |
| 120 | } |
| 121 | |
| 122 | private void writeImageWithTransparency(ImagePlus imp, String path, int transparentIndex) throws Exception { |
| 123 | int width = imp.getWidth(); |
no test coverage detected