Description

This method returns a single pseudo-color (see Remarks).

Return Type

None  

Syntax

object.GetColor lIndex, pvIntensityRange, pPseudoColor

The GetColor Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McPseudoColor.
lIndexRequired. A Long value.

[in]

pvIntensityRangeRequired. A Variant value.

[out]

pPseudoColorRequired. A Long value.

Remarks

This method returns a pseudo-color and intensity range for a given index in the generated pseudo-coloring. The result will depend on the pseudo-coloring settings: * If colors are added with AddColor, this overrides the normal generation of a color spectrum. The intensity ranges added with AddColor are returned directly, with the first one added being index 0 and the last one added being index Size - 1. * If a color spectrum is generated and a specific Size is specified, then the colors are generated in Size “bins” of a particular color applying to all intensities within that bin's intensity range. The specified bin's color and intensity are returned. * If a color spectrum is generated with a Size of zero, then a color will be generated for each possible intensity range (up to a maximum of 65536). The specified intensity range's color will be returned, and for high-precision and floating point images the intensity range to which the color will apply.