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: 10.2.3317.0 , built 2025-03-17 14:03:43 UTC
Syntax
void LoadUserMask(
	string strMask
)

Parameters

strMask  String
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