Returns the display mode (IJ.COMPOSITE, IJ.COLOR or IJ.GRAYSCALE) if this is a CompositeImage, otherwise returns -1.
()
| 3224 | /** Returns the display mode (IJ.COMPOSITE, IJ.COLOR |
| 3225 | or IJ.GRAYSCALE) if this is a CompositeImage, otherwise returns -1. */ |
| 3226 | public int getCompositeMode() { |
| 3227 | if (isComposite()) |
| 3228 | return ((CompositeImage)this).getMode(); |
| 3229 | else |
| 3230 | return -1; |
| 3231 | } |
| 3232 | |
| 3233 | /** Sets the display range of the current channel. With non-composite |
| 3234 | * images it is identical to ip.setMinAndMax(min, max). |
no test coverage detected