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


IScene.SetDefaultBackgroundColor Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > 3DAnalyst > ESRI.ArcGIS.Analyst3D > Interfaces > IS > IScene Interface > IScene.SetDefaultBackgroundColor Method
ArcGIS Developer Help

IScene.SetDefaultBackgroundColor Method

Sets the default background color.

[Visual Basic .NET]
Public Sub SetDefaultBackgroundColor ( _
    ByVal red As Single, _
    ByVal green As Single, _
    ByVal blue As Single _
)
[C#]
public void SetDefaultBackgroundColor (
    float red,
    float green,
    float blue
);
[C++]
HRESULT SetDefaultBackgroundColor(
  float red,
  float green,
  float blue
);
[C++]
Parameters
red [in]

red is a parameter of type single green [in]
green is a parameter of type single blue [in]
blue is a parameter of type single

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires 3D Analyst Extension.

Remarks

The values for the red, green, and blue components should fall between 0 and 1 inclusive. A value of 1 represents 100% saturation of that component.

The DefaultBackgroundColor is that used by new scenes. Only when a new scene is created will the color set here be used.

If you want to set the background color of the existing scene use ISceneGraph.SetBackgroundColor.

See Also

IScene Interface