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


IRasterDefaultsEnv.Query3BandRGB Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Carto)  

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 _
)
[C#]
public void Query3BandRGB (
    ref int redIndex,
    ref int greenIndex,
    ref int blueIndex
);
[C++]
HRESULT Query3BandRGB(
  long* redIndex,
  long* greenIndex,
  long* blueIndex
);
[C++]

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

Remarks

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