ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Core Namespace / RasterImageryOptions Class / SetBackgroundColor Method
Version

SetBackgroundColor Method
Sets the raster background color. Use SetDisplayBackground and SetBackgroundValue to display the background value. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public void SetBackgroundColor( 
   CIMColor backgroundColor
)

Parameters

backgroundColor
Exceptions
ExceptionDescription
The backgroundColor is null.
This method or property must be called within the lambda passed to QueuedTask.Run.
Remarks
You can display the background of a raster dataset in a specific color or with transparency. This allows you to hide or highlight the background. Usually, the background color is set to transparent so that it is hidden.
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3.4 or higher.
See Also