Skip To Content ArcGIS for Developers Sign In Dashboard

ColormapRenderer Class

(Esri::ArcGISRuntime::ColormapRenderer)

A ColormapRenderer provides a discrete mapping of raster pixel values to colors. More...

Header: #include <ColormapRenderer>
Since: Esri::ArcGISRuntime 100.0
Inherits: RasterRenderer

Public Functions

ColormapRenderer(const QList<QColor> &colors, QObject *parent = nullptr)
ColormapRenderer(Colormap *colormap, QObject *parent = nullptr)
~ColormapRenderer()
Colormap *colormap() const
QList<QColor> colors() const

Additional Inherited Members

Detailed Description

A ColormapRenderer provides a discrete mapping of raster pixel values to colors.

All pixels matching the specified value will be rendered using the mapped color. This is useful for thematic mapping tasks such as land classification. This concept of this class is similar to a UniqueValueRenderer, except that ColormapRenderer is specifically for rendering raster pixel values.

Member Function Documentation

ColormapRenderer::ColormapRenderer(const QList<QColor> &colors, QObject *parent = nullptr)

Constructor that takes a list of colors with an optional parent.

ColormapRenderer::ColormapRenderer(Colormap *colormap, QObject *parent = nullptr)

Constructor that takes a colormap with an optional parent.

ColormapRenderer::~ColormapRenderer()

Destructor.

Colormap *ColormapRenderer::colormap() const

Returns the Colormap object used to create this Renderer.

QList<QColor> ColormapRenderer::colors() const

Returns the list of color objects used to create this Renderer.


Feedback on this topic?