Move Method

NI Vision for Visual Basic

Move Method

Syntax

CWIMAQRegion.Move dx, dy

Purpose

Programmatically shifts a region horizontally or vertically.

Parameters

dx As Long

Distance in pixels to move on the x-axis.

dy As Long

Distance in pixels to move on the y-axis.

Example

' Move the first region 10 pixels left and 20 pixels up
CWIMAQViewer1.Regions(1).Move 10,-20