TransformRegions Method

NI Vision for Visual Basic

TransformRegions Method

Syntax

CWIMAQRegions.TransformRegions x1, y1, Angle1, x2, y2, Angle2

Purpose

Obsolete—Use CWIMAQVision.TransformRegions instead.

Rotates and translates regions in the Regions collection. Use this method to transform an ROI from one coordinate system to another.

Remarks

This method operates on all Region objects whose Active property is True.

Parameters

x1 As Long

X-coordinate of the base reference coordinate system.

y1 As Long

Y-coordinate of the base reference coordinate system.

Angle1 As Single

Angle, in degrees, of the base reference coordinate system.

x2 As Long

X-coordinate of the new reference coordinate system.

y2 As Long

Y-coordinate of the new reference coordinate system.

Angle2 As Single

Angle, in degrees, of the new reference coordinate system.

See Also

CWIMAQVision.TransformRegions