ColormapRenderer class final

A colormap renderer provides a discrete mapping of raster cell values to colors to help visualize the raster data in a RasterLayer.

All cells matching the specified value will be rendered using the mapped color. This is useful for thematic mapping tasks such as land classification when you want the values in the raster layer to be represented by a specified color. This concept of this class is similar to an UniqueValueRenderer, except that ColormapRenderer is specifically for rendering raster cell values.

Inheritance

Constructors

ColormapRenderer.withColormap(Colormap? colormap)
Creates a raster colormap renderer.
factory
ColormapRenderer.withColors(List<Color> colors)
Creates a raster colormap renderer.
factory

Properties

colormap Colormap?
The colormap object.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited