A Colormap object, which can be used with a ColormapRenderer. More...
| Header | #include <Colormap.h |
| Since | Esri |
| Inherits | Esri |
Public Functions
| virtual | ~ |
Static Public Members
| Esri | create(const QList |
(since Esri Esri | create(const QMap |
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.
This function was introduced in Esri::ArcGISRuntime 300.0.