Returns a copy of this image as an 8-bit or RGB BufferedImage. @see ij.process.ShortProcessor#get16BitBufferedImage
()
| 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() { |
no test coverage detected