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

IScene.GetDefaultBackgroundColor 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.GetDefaultBackgroundColor Method
ArcGIS Developer Help

IScene.GetDefaultBackgroundColor Method

Returns the default background color.

[Visual Basic .NET]
Public Sub GetDefaultBackgroundColor ( _
    ByRef red As Single&, _
    ByRef green As Single&, _
    ByRef blue As Single& _
public void GetDefaultBackgroundColor (
    ref Single& red,
    ref Single& green,
    ref Single& blue
HRESULT GetDefaultBackgroundColor(
  System.Single* red,
  System.Single* green,
  System.Single* blue
red [out]

red is a parameter of type single* green [out]
green is a parameter of type single* blue [out]
blue is a parameter of type single*

Product Availability

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


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

The DefaultBackgroundColor is that used by new scenes. It does not necessarilly indicate the background color of the current scene.

If you want to know the background color of the current scene use ISceneGraph.GetBackgroundColor.

See Also

IScene Interface