Click or drag to resize

IMaskLoadUserMask Method

Loads a user mask using string format

Namespace:  LynceeTec.Interfaces
Assembly:  LynceeTec.Interfaces (in LynceeTec.Interfaces.dll) Version: 8.1.17212.0 8_1_dev 6ff713ba, built 2019-10-03 13:47:19 UTC
Syntax
void LoadUserMask(
	string strMask
)

Parameters

strMask
Type: SystemString
Define a user mask using rectangular and/or elliptical regions in a string satisfying the following format: "imageWidth imageHeight NumberOfShapes\n shapeId param1 param2 param3 param4 keepInside (opt.)intersection\n shapeId param1 param2 param3 param4 keepInside (opt.)intersection\n" Rectangular shapes CutRectangleUserMask(Int32, Int32, Int32, Int32, Boolean, Boolean): shapeId = 0 param1 is roileft param2 is roitop param3 is roiwidth param4 is roiheight Elliptical shapes CutEllipseUserMask(Int32, Int32, Int32, Int32, Boolean, Boolean): shapeId = 1 param1 is centerX param2 is centerY param3 is radiusX param4 is radiusY keepInside and intersection have value 0 (false) or 1 (true)
See Also