02-05-2010 03:16 PM
I am having trouble getting the GetBoundingRectangle function to work in the NI VIsion .NET class library.
In the CWIMAQ-version, I could type if I wanted to get the bounding rectangle of the second ROI in the collection:
Dim reg1 As New CWIMAQRectangle
CWIMAQViewer1.Regions.Item(2).GetBoundingRectangle(reg1)
How do I do the equivalent using the NI VIsion .NET class library?
Thanks!
02-09-2010 05:40 AM
02-09-2010 03:11 PM
Here is the syntax and explanation given in the help for the equivalent method in Vision .NET. (Roi.GetBoundingRectangle Method)
Returns the bounding rectangle for the region of interest (ROI). The bounding rectangle is the smallest rectangle that contains all of the contours that comprise the ROI.
[Visual Basic]
Public Function GetBoundingRectangle() As RectangleContour
[C#]
public RectangleContour GetBoundingRectangle();