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

Description

A color ramp representing a range of colors.

An instance of this class represents a color ramp specifying a range of colors useful for displaying continuous raster data such as elevation or precipitation. Color ramps are used with AGSBlendRenderer and AGSStretchRenderer to visualize raster data.

Since
100
Inheritance diagram for AGSColorRamp:
AGSObject

Instance Methods

(nullable instancetype) - initWithType:size:
 

Class Methods

(nullable instancetype) + colorRampWithType:size:
 

Method Documentation

◆ colorRampWithType:size:

+ (nullable instancetype) colorRampWithType: (AGSPresetColorRampType type
size: (NSInteger)  size 

Initialize color ramp with specified parameters

Parameters
typeThe predefined color ramp type
sizeof the color ramp. Use at least 256 to achieve a reasonable color transition, but for smoother transitions use larger values (for eg 20,000-30,000) to match the number of unique pixel values in your raster data.
Note
This is a failable initializer. Specifying a size that is too small for the color ramp type will return nil.
Returns
Initialized color ramp
Since
100

◆ initWithType:size:

- (nullable instancetype) initWithType: (AGSPresetColorRampType type
size: (NSInteger)  size 

Initialize color ramp with specified parameters

Parameters
typeThe predefined color ramp type
sizeof the color ramp. Use at least 256 to achieve a reasonable color transition, but for smoother transitions use larger values (for eg 20,000-30,000) to match the number of unique pixel values in your raster data.
Note
This is a failable initializer. Specifying a size that is too small for the color ramp type will return nil.
Returns
Initialized color ramp
Since
100