To display all of the color components use "-1"; otherwise, use 0 for the first component, 1 for the second and so forth.
Refer to NumberOfColorComponents
For an example that selects the index for the first component, refer to JpipRasterImageViewer.