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

Method writeImage

ij/src/main/java/ij/plugin/GifWriter.java:115–120  ·  view source on GitHub ↗
(ImagePlus imp, String path, int transparentIndex)

Source from the content-addressed store, hash-verified

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();

Callers 1

runMethod · 0.95

Calls 3

writeMethod · 0.65
getBufferedImageMethod · 0.45

Tested by

no test coverage detected