 | IMaskLoadUserMask Method |
Loads a user mask using string format
Namespace:
LynceeTec.Interfaces
Assembly:
LynceeTec.Interfaces (in LynceeTec.Interfaces.dll) Version: 9.0.26418.0 , built 2021-10-22 08:45:14 UTC
Syntaxvoid LoadUserMask(
string strMask
)
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