ArcGIS Runtime SDK for iOS: AGSColormapRenderer Class Reference
ArcGIS Runtime SDK for iOS  100.15
AGSColormapRenderer Class Reference

Description

A colormap raster renderer.

Instances of this class represent a color map renderer that can help visualize raster data using AGSRasterLayer. It displays each pixel value in the raster using a color from the color map. Color maps contain a set of values that are associated with colors and are used to display a single-band raster consistently with the same colors. Each pixel value is associated with a color. You can use a color map to represent analyzed data, such as a classified image, or when displaying a topographic map (or index color-scanned image).

Since
100
Inheritance diagram for AGSColormapRenderer:
AGSRasterRenderer AGSObject

Instance Methods

(instancetype) - init
 
(instancetype) - initWithColormap:
 
(instancetype) - initWithColors:
 

Class Methods

(instancetype) + colormapRendererWithColormap:
 
(instancetype) + colormapRendererWithColors:
 
(instancetype) + rasterRenderer
 

Properties

AGSColormapcolormap
 

Method Documentation

◆ colormapRendererWithColormap:

+ (instancetype) colormapRendererWithColormap: (AGSColormap *)  colormap

Initialize a colormap renderer based on the provided colormap

Parameters
colormapto use.
Returns
Initialized colormap renderer
Since
100

◆ colormapRendererWithColors:

+ (instancetype) colormapRendererWithColors: (NSArray< AGSColor * > *)  colors

Initialize a colormap renderer based on the provided colors

Parameters
colorsto use. The color at the 0th index is used for raster pixels that have a value of 0, color at 1st index for value 1, and so on.
Returns
Initialized colormap renderer
Since
100

◆ init

- (instancetype) init

◆ initWithColormap:

- (instancetype) initWithColormap: (AGSColormap *)  colormap

Initialize a colormap renderer based on the provided colormap

Parameters
colormapto use.
Returns
Initialized colormap renderer
Since
100

◆ initWithColors:

- (instancetype) initWithColors: (NSArray< AGSColor * > *)  colors

Initialize a colormap renderer based on the provided colors

Parameters
colorsto use. The color at the 0th index is used for raster pixels that have a value of 0, color at 1st index for value 1, and so on.
Returns
Initialized colormap renderer
Since
100

◆ rasterRenderer

+ (instancetype) rasterRenderer

Property Documentation

◆ colormap

- (AGSColormap*) colormap
readnonatomicstrong

The colormap used to create renderer.

Since
100