ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / BasicRasterLayer Class / CreateColorizer Method
The defined RasterColorizerDefinition.

In This Topic
    CreateColorizer Method
    In This Topic
    Creates a ArcGIS.Core.CIM.CIMRasterColorizer specifically for a BasicRasterLayer using a defined RasterColorizerDefinition. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax

    Parameters

    colorizerDefinition
    The defined RasterColorizerDefinition.

    Return Value

    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Cannot create colorizer for layer.
    Remarks
    Use CanCreateColorizer to determine if the colorizer is valid for the layer before creating it.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also