This document is archived and information here might be outdated.  Recommended version.


IRasterRGBRenderer Interface (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IR > IRasterRGBRenderer Interface
ArcGIS Developer Help

IRasterRGBRenderer Interface

Provides access to members which control the raster Red/Green/Blue renderer. Note: the IRasterRGBRenderer interface has been superseded by IRasterRGBRenderer2. 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

Name 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.

Classes that implement IRasterRGBRenderer

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.

.NET Samples

Create a custom default raster catalog renderer