Description

This method realizes the pseudo-color LUT for a given image type.

Return Type

None  

Syntax

object.RealizeForImageType vImageType

The RealizeForImageType Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McPseudoColor.
vImageTypeRequired. A Variant value.

[in]

Remarks

This method realizes the current pseudo-coloring and clears the Modified property. The pseudo-color will be realized to be compatible with the specified image type, which can be specified by supplying a quick type or an McImageType instance (e.g. myImage->Type).

If the Size property has been set to a non-zero value, the grayscales within the specified intensity range will be ?binned? into the number of colors specified. When the Size is zero, a smooth gradient will be generated.

Note

It is NOT recommended that a “generic” pseudo-color be attached to images/frames of different types. The redraw of every image will force a RealizeForImageType to convert the LUT to the new image's type, so redraw of all images with pseudo-coloring will be slow. If it is desired to attach the same type of pseudo-coloring to images of various different types, the preferred method is to make a “master” pseudo-color with the desired settings, then for each image type make a new pseudo-color, call MakeDuplicateOf on the new pseudo-color and attach the new copy to the image.