ZoomScale Property

NI Vision for Visual Basic

ZoomScale Property

Syntax

CWIMAQViewer.ZoomScale

Data Type

Variant

Purpose

Zoom factor.

Remarks

The magnification of the image increases or decreases by a factor of 2 raised to the power of ZoomScale. For example, a ZoomScale of 0 indicates that one image pixel corresponds to one screen pixel. ZoomScales of 1 and 2 increase the magnification by factors of 2 and 4, respectively. ZoomScales of –1 and –2 decrease the magnification by factors of 2 and 4, respectively. Valid values for ZoomScale range from –4 to 4.

See Also

ZoomToFit