ColorMode Property

Applies To
Vision Objects: ColorMatch, ImageOp

Description
Sets the desired color mode (RBG or HSV).

Usage

VGet  Sequence.Object.ColorMode, var
VSet  Sequence.Object.ColorMode, value
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.
value
Integer value or expression for the new value of the property.

Values

  • 1 - RGB
  • 2 - HSV

Default: 1 (RGB)

Remarks
ColorMode is used to set the color space used for the search in ColorMatch and for the ColorFilter ImageOp operation.

See Also
ColorMatch Object, ImageOp Object, ModelColorTol Property