CWIMAQRegions

NI Vision for Visual Basic

CWIMAQRegions

CWIMAQRegions is a collection of CWIMAQRegion objects. Every CWIMAQViewer control has a CWIMAQRegions collection associated with it, which you can use to add and manipulate region objects on the viewer. In addition, you can create a CWIMAQRegions object that is not associated with a CWIMAQViewer control.

Properties

CountNumber of objects in the collection.
DefaultRegionColorDefault value of the PenColor property for new regions you add to the collection. The default is vbGreen.

Methods

AddAdds an object to the collection and returns the new object.
AddAnnulusAdds an annulus region to the regions collection.
AddBrokenlineAdds a Brokenline to the regions collection.
AddFreelineAdds a Freeline to the regions collection.
AddFreeregionAdds a Freeregion to the regions collection.
AddLineAdds a line region to the regions collection.
AddOvalAdds an oval region to the regions collection.
AddPointAdds a point region to the regions collection.
AddPolygonAdds a polygon to the regions collection.
AddRectangleAdds a rectangle region to the regions collection.
AddRegionAdds a region that contains any type of shape to the regions collection.
AddRotatedRectangleAdds a rotated rectangular region to the regions collection.
CopyToCopies one regions collection into another.
GetBoundingRectangleGets the bounding rectangle of the regions of interest.
ItemReturns the specified object from the collection.
MaskToRegionsObsolete—Use CWIMAQVision.MaskToRegions instead. Transforms an image mask into regions of interest.
RegionsProfileObsolete—Use CWIMAQVision.RegionsProfile instead.

Calculates the profile of the pixels along the boundary of a region of interest.
RegionsToMaskObsolete—Use CWIMAQVision.RegionsToMask instead.

Transforms the specified Region objects into a mask.
RemoveRemoves the specified item from the collection.
RemoveAllRemoves all objects from the collection.
TransformRegionsObsolete—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.

See Also

CWIMAQRegion