Returns the display mode (IJ.COMPOSITE, IJ.COLOR or IJ.GRAYSCALE) if this is a composite color image, or 0 if it not.
()
| 430 | or IJ.GRAYSCALE) if this is a composite color |
| 431 | image, or 0 if it not. */ |
| 432 | public int getDisplayMode() { |
| 433 | if (this instanceof CompositeImage) |
| 434 | return ((CompositeImage)this).getMode(); |
| 435 | else |
| 436 | return 0; |
| 437 | } |
| 438 | |
| 439 | /** Controls which channels in a composite color image are displayed, |
| 440 | where 'channels' is a list of ones and zeros that specify the channels to |