Maptitude GISDK Help

Colors

Colors can be created and manipulated as objects in GISDK using the functions shown below:

 

GISDK Function

Summary

ChooseColor()

Gets a color using the Windows Color dialog box

ColorCIE()

Creates a color based on its (x, y, g) coordinates in the CIE chromaticity space

ColorHLS()

Creates a color based on hue, lightness and saturation

ColorHSV()

Creates a color based on hue, saturation and value (brightness)

ColorRGB()

Creates a color based on the amounts of red, green and blue

GeneratePalette()

Generates an array of gradually changing colors

GetColorCIE()

Returns the (x, y, g) coordinates of a color in CIE chromaticity space

GetColorHLS()

Returns the hue lightness and saturation of a color

GetColorHSV()

Returns the hue, saturation and value (brightness) of a color

 

As a convenience, there is a shared options array cc_Colors that contains twelve standard colors:

 

Option

Definition

cc_Colors.White 

ColorRGB(65535, 65535, 65535)

cc_Colors.Black 

ColorRGB(0, 0, 0)

cc_Colors.Gray  

ColorRGB(50000, 50000, 50000)

cc_Colors.Red   

ColorRGB(65535, 0, 0)

cc_Colors.Green 

ColorRGB(0, 39320, 13100)

cc_Colors.Yellow

ColorRGB(65535, 65535, 0)

cc_Colors.Gold  

ColorRGB(65535, 54430, 0)

cc_Colors.Brown 

ColorRGB(39320, 26215, 13100)

cc_Colors.Cyan  

ColorRGB(0, 58982, 58982)

cc_Colors.Blue  

ColorRGB(10000, 10000, 65535)

cc_Colors.Orange

ColorRGB(65535, 33767, 0)

cc_Colors.Purple

ColorRGB(32768,0,65535)

 

For example, the following will use ColorRGB(65535, 65535, 0) as the icon color:

 

shared cc_Colors

...

SetIconColor(, cc_Colors.Yellow)

 

You can get and set the red, green, blue, and alpha (opacity) properties of a color with selectors; for more information, see Compound Variables.

 

 

©2025 Caliper Corporation www.caliper.com