CWIMAQRegion

NI Vision for Visual Basic

CWIMAQRegion

CWIMAQRegion represents region data and properties that you can configure on a per region basis. This object contains a shape object. Use the Shape property to find out what type of shape a CWIMAQRegion contains. To access the shape object, set the region to a shape variable of the appropriate type. For example, Set MyLine = MyRegions(1) allows you to manipulate the line that is contained in MyRegions(1).

Properties

ActiveBoolean that specifies if regions in an image are processed by methods in the CWIMAQRegions object. The default is True, which allows the regions of an image to be processed by the CWIMAQRegions object.
ExternalBoolean that specifies if the contour is external or internal. The default is True.
PenColorColor in which to display the region. The default is taken from the CWIMAQRegions.DefaultRegionColor of the collection to which this region belongs.
ShapeShape type of the region. This is determined by the type of shape that was added to the Regions collection.
VisibleBoolean that specifies if the viewer draws the region. The default is True.
XDataObsolete Array of x-coordinates for the data points of the region.
YDataObsolete Array of y-coordinates for the data points of the region.

Methods

GetBoundingRectObsolete—Use GetBoundingRectangle instead. Returns the bounding rectangle of the region.
GetBoundingRectangleReturns the bounding rectangle of the region.
MoveProgrammatically shifts a region horizontally or vertically.
SetRegionObsolete Programmatically modifies many region properties with one method call.

See Also

CWIMAQRegions

Shape