RegionsToMask Method

NI Vision for Visual Basic

RegionsToMask Method

Syntax

CWIMAQRegions.RegionsToMask DestImage [, UseModelImage = True] [, FillValue = 255]

Purpose

Obsolete—Use CWIMAQVision.RegionsToMask instead.

Transforms the specified Region objects into a mask.

Remarks

This method operates on all Region objects that have their Active property set to True. This method is valid only on a regions collection that is on a viewer.

Parameters

DestImage As CWIMAQImage

The destination image where the mask is created.

UseModelImage As Variant

[Optional] Specifies if the new mask image should take on the height and width of the Viewer image. If not, the MaskOffsetX and MaskOffsetY properties are calculated for the mask image.

This parameter has a default value of True.

FillValue As Variant

[Optional] The pixel value of the mask. All pixels inside the regions of interest take this value.

This parameter has a default value of 255.

See Also

CWIMAQVision.RegionsToMask