ArcObjects Library Reference (Carto)  

IRasterRGBRenderer Interface

Provides access to members which control the raster Red/Green/Blue renderer. Note: the IRasterRGBRenderer interface has been superseded byIRasterRGBRenderer2. Please consider using the more recent version.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

When To Use

IRasterRGBRenderer is used to display multiband images. It draws three bands of a raster dataset, one to each of the red, green, and blue channels of the display.

Members

Description
Read/write property BlueBandIndex Band to be represented in blue.
Read/write property GreenBandIndex Band to be represented in green.
Method QueryBandIndices Band numbers for red, green, and blue bands.
Read/write property RedBandIndex Band to be represented in red.
Method SetBandIndices Band numbers for red, green, and blue bands.
Read/write property UseBlueBand Indicates if the blue band is used.
Read/write property UseGreenBand Indicates if the green band is used.
Read/write property UseRedBand Indicates if the red band is used.

CoClasses that implement IRasterRGBRenderer

CoClasses and Classes Description
RasterRGBRenderer A true-color RGB renderer.

Remarks

The RedBandIndex, BlueBandIndex, and GreenBandIndex properties of this interface control which band is displayed in each display channel.

The the band index is zero based, with a value of zero representing band one, a value of one representing band two, and so on. Each channel can be set to display or not display using the UseRedBand,UseGreenBand, and UseBlueBand properties.

To check or set the band indices for all three bands with one call, use the QueryBandIndices or SetBandIndices functions.