Description

A property representing the image's color map.

Property type

A Variant value.  

Syntax

object.ColorMap [= value]

The ColorMap Property syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McImage.
valueA Variant value.

Remarks

Gets or sets the image's color map. The property returns an empty variant if the image is not an indexed color image or if the color map has not yet been set. The color map returned will be an array of longs representing color values (see RGB() in BASIC and COLORREF in the Windows SDK). When setting the color map, supply an array of 2 or more longs (256 recommended). The length of the array sets the length of the color map.