ColorValue Result

Applies To
Vision Objects: ColorMatch, Point

Description
Returns the RGB or HSV value of the found color and returns the gray value for a monochrome image.

Usage

VGet  Sequence.Object.ColorValue [(result)], var
Sequence
Name of a sequence or string variable containing a sequence name.
Object
Name of an object or string variable containing an object name
.
The object must exist in the specified sequence.
var
Integer variable that will contain the value of the property.
result
Optional integer result number from 1 to the NumberOfResults property. If omitted, the result number is the value of CurrentResult.

Values
For RGB, the format is a 6-digit hexadecimal number (&Hrrggbb for red, green, and blue).

For HSV, the format is a 7-digit hexadecimal number (&Hhhhssvv for hue, saturation, and value).

For monochrome images, ColorValue returns the gray value within a range of 0-255

Remarks
ColorValue returns the actual RGB or HSV value of the found color. Normally, ColorIndex is used to determine which color model had the best match. ColorValue returns the actuall color that was found.

See Also
ColorMatch Object, ColorMode Property, Point Object, ColorIndex Result, ColorName Result