Description

This property specifies the size (granularity) of the pseudo-coloring.

Property type

A Long value.  

Syntax

object.Size [= value]

The Size Property syntax has these parts:

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

Remarks

This property allows the user to specify the number of unique color steps. The size is limited by the maximum number of unique intensity levels for most image classes, and by a maximum size of 65536. The default size of 0 (zero) can be used to have the spectrum generated at the maximum possible granularity. See the RealizeForImageType() method for a discussion of property interactions.

When inquired, the size will indicate the number of colors specified by AddColor, or the color spectrum size if it was previously specified, or the effective color spectrum size if a size of zero was specified and the image type is known. When none of the above is known, the size returns zero.