ColorMap Property

ColorMap returns a ColorMap object. This is a read-only property.

Syntax

object.ColorMap

Remarks

When ColorGridFile is set for a vector map, the color map data minimum and maximum are reset to the grid file. (Users should call set ColorGridFile first.)

Example 1

This example demonstrates how to return the node positions of a color map. The first two statements create an array of doubles named NodePositions and store the node positions of the color map within the array. The remaining statements allow all the node positions of any color map to be returned.

Dim FirstNode As Integer

FirstNode = LBound(NodePositions)

 

Dim LastNode As Integer

LastNode = UBound(NodePositions)

 

Dim NodeNumber As Integer

For NodeNumber = FirstNode To LastNode Step 1

Debug .Print NodePositions(NodeNumber)

Next NodeNumber

Example 2

This example demonstrates how to load the color map file named RAINBOW.CLR.

VectorLayer.ColorMap.LoadFile(FileName:=SurferApp.Path+"\Samples\Rainbow.clr")

Used by: ColorReliefLayer Object, Surface object, VectorLayer Object