StartRefresh Method

NI Vision Builder ActiveX

StartRefresh Method

Syntax

NIVBAIInspectionImage.StartRefresh XZoom, YZoom

Purpose

Requests the latest image from the inspection. NIVBAIInspectionImage.Image is updated and a RefreshImageComplete event is triggered when this request is done.

Parameters

XZoom as Long

Indicates how much to zoom the image horizontally. Values can be zero or less, and negative numbers indicate how far to zoom out. If this value is anything other than zero, overlays are lost.

YZoom as Long

Indicates how much to zoom the image vertically. Values can be zero or less, and negative numbers indicate how far to zoom out. If this value is anything other than zero, overlays are lost.