KeepRGBRatio Property

Applies To
Vision Objects: ImageOp

Description
Sets / gets whether to maintain the ratio between R, G, B for the ColorStretch operation.

Usage

VGet  Sequence.Object.KeepRGBRatio, var
VSet  Sequence.Object.KeepRGBRatio, 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
Boolean variable that will contain the value of the property
value
Boolean value or expression for the new value of the property.

Values

  • 0 - False: Do not maintain the ratio between R, G, B for ColorStretch.
  • -1 - True: Maintain the ratio between R, G, B for ColorStretch.

Default: True

Remarks
For the ImageOp ColorStretch operation, KeepRGBRatio sets whether to maintain the ratio between R, B, G values when performing the stretch. When KeepRGBRatio is "False", the R. G, and B values are stretched individually.

See Also
ImageOp Object, MaxRGB Property, MinRGB Property