Skip to content
  • Colormap
  • class Esri::ArcGISRuntime::Colormap

    A Colormap object, which can be used with a ColormapRenderer. More...

    Header: #include <Colormap.h>
    Since: Esri::ArcGISRuntime 100.0
    Inherits: Esri::ArcGISRuntime::Object

    Public Functions

    virtual ~Colormap() override

    Static Public Members

    Esri::ArcGISRuntime::Colormap *create(const QList<QColor> &colors, QObject *parent = nullptr)
    (since Esri::ArcGISRuntime 300.0) Esri::ArcGISRuntime::Colormap *create(const QMap<int, QColor> &colorMappings, QObject *parent = nullptr)

    Detailed Description

    Relevant samples:

    • Apply map algebra: Apply map algebra to an elevation raster to floor, mask, and categorize the elevation values into discrete integer-based categories.

    Member Function Documentation

    [override virtual noexcept] Colormap::~Colormap()

    Destructor.

    [static] Esri::ArcGISRuntime::Colormap *Colormap::create(const QList<QColor> &colors, QObject *parent = nullptr)

    Returns a colormap with specified colors. Raster value of 0 gets mapped to the first color in the array, and each consecutive raster value maps to the subsequent color in the array.

    • colors - An array of colors.
    • parent - The optional parent QObject.

    [static, since Esri::ArcGISRuntime 300.0] Esri::ArcGISRuntime::Colormap *Colormap::create(const QMap<int, QColor> &colorMappings, QObject *parent = nullptr)

    Returns a colormap with the specified mapping of raster values to colors.

    • colorMappings - A QMap of values with corresponding colors.
    • parent - The optional parent QObject.

    This function was introduced in Esri::ArcGISRuntime 300.0.

    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.