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

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

IRasterDefaultsEnv.Query3BandRGB Method

Default zero indexed bands for a 3 band raster.

[Visual Basic .NET]
Public Sub Query3BandRGB ( _
    ByRef redIndex As Integer, _
    ByRef greenIndex As Integer, _
    ByRef blueIndex As Integer _
public void Query3BandRGB (
    ref int redIndex,
    ref int greenIndex,
    ref int blueIndex
  System.Int32* redIndex,
  System.Int32* greenIndex,
  System.Int32* blueIndex
redIndex [out]

redIndex is a parameter of type long* greenIndex [out]
greenIndex is a parameter of type long* blueIndex [out]
blueIndex is a parameter of type long*

Product Availability

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


The Query3BandRGB, Query4BandRGB, Set3BandRGB, and Set4BandRGB methods allow you to view or set the default band combinations used to display rasters with three or more bands. The indices set for these defaults will populate the red, green, and blue channels of the RGB renderer when a raster is initially displayed.

The Query3BandRGB and Set3BandRGB methods apply only to three band rasters, while the Query4BandRGB and Set4BandRGB methods apply to all rasters containing four or more bands.

See Also

IRasterDefaultsEnv Interface