CWIMAQRotatedRectangle

NI Vision for Visual Basic

CWIMAQRotatedRectangle

CWIMAQRotatedRectangle contains properties that specify a rectangle. A rotated rectangle is specified by a center point, width, height, and an angle. The width and height parameters set the axes that are horizontal and vertical, respectively, when the rectangle is not rotated (Angle = 0).

Properties

AngleRotation angle, in degrees, of the rectangle.
CenterCenter point of the rectangle.
HeightLength of the rectangle axis that is vertical when Angle = 0.
WidthLength of the rectangle axis that is horizontal when Angle = 0.

Methods

CopyToCopies all of the properties from the source rotated rectangle into the destination rotated rectangle.
GetBoundingRectangleGets the bounding rectangle of the rotated rectangle.
InitializeSets all the properties of the rectangle with one method call.