MakeRotatedRectangle Method
Syntax
CWIMAQRectangle.MakeRotatedRectangle
Return Type
Makes a rotated rectangle with an angle of 0 degrees from the rectangle.
Purpose
Copies a rectangle into a rotated rectangle with an angle of 0.
Example
Private Sub Run_Click()
Dim Rectangle As CWIMAQRectangle
Dim ObjectsReport As New CWMVObjectsReport
'Get a rectangle region from the viewer
Set Rectangle = CWIMAQViewer1.Regions(1)
'Call a machine vision function that takes a rotated rectangle
CWMachineVision1.CountAndMeasureObjects CWIMAQViewer1.Image, ObjectsReport, _
Rectangle.MakeRotatedRectangle
End Sub