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

Method getBufferedImage

ij/src/main/java/ij/ImagePlus.java:705–719  ·  view source on GitHub ↗

Returns a copy of this image as an 8-bit or RGB BufferedImage. @see ij.process.ShortProcessor#get16BitBufferedImage

()

Source from the content-addressed store, hash-verified

703 * @see ij.process.ShortProcessor#get16BitBufferedImage
704 */
705 @AstroImageJ(reason = "Support for Vectorized and Scaled plots", modified = true)
706 public BufferedImage getBufferedImage() {
707 if (getProperty(VectorPlotDrawing.PROPERTY_KEY)!=null) {
708 Plot plot = (Plot)(getProperty(VectorPlotDrawing.PROPERTY_KEY));
709 return plot.getBufferedImage(width, height);
710 }
711 if (stack instanceof PlotVirtualStack plotVirtualStack) {
712 var plot = plotVirtualStack.getPlot(currentSlice);
713 return plot.getBufferedImage(width, height);
714 }
715 if (isComposite())
716 return (new ColorProcessor(getImage())).getBufferedImage();
717 else
718 return ip.getBufferedImage();
719 }
720
721 /** Returns this image's unique numeric ID. */
722 public int getID() {

Callers 2

updateImageMethod · 0.45
getImageMethod · 0.45

Calls 4

getPropertyMethod · 0.95
isCompositeMethod · 0.95
getImageMethod · 0.95
getPlotMethod · 0.65

Tested by

no test coverage detected