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

Description

A colormap to display raster data as either a grayscale or color image.

An instance of this class represents a colormap to display raster data as either a grayscale or color image.

Colormaps help to associate a pixel value with a corresponding color. The pixel value is specified by the index of the color in the colormap. So, a color at index 0 in the colormap will be used to paint all the pixels that have a value of 0 in the raster.

Since
100
See also
AGSColormapRenderer
Inheritance diagram for AGSColormap:
AGSObject

Instance Methods

(instancetype) - initWithColors:
 

Class Methods

(instancetype) + colormapWithColors:
 

Method Documentation

◆ colormapWithColors:

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

Intialize the colormap with the specified colors

Parameters
colorsthat are part of the colormap. 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.
Since
100

◆ initWithColors:

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

Intialize the colormap with the specified colors

Parameters
colorsthat are part of the colormap. 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.
Since
100