ImageFileScale Property

Applies To
Vision Sequence

Description
Sets the scale for the image specified with the ImageFile property.

Usage

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

Values
Real value specifying the image scale.

Default: 0

Remarks
By default (ImageFileScale = 0), an image file is automatically scaled to ImageSize. Set ImageFileScale to specify a scale. For example, if ImageFileScale is set to 1, then the image from the file is scaled by a factor of 1 (no change). If ImageFileScale is set to 2, then the image is twice as large, and so on. The image is scaled from the top left corner and portions of the image that are outside of ImageSize are cropped. If the scaled image is smaller than ImageSize, then the remaining portions of the grab image are filled with black.

See Also
ImageFile Property, ImageSize Property