SetMaskArray

Declaration: TMetaData.SetMaskArray (ixMask: integer; MaskArray: TBool2DArray): integer;
Copies the values of the two dimensional boolean array MaskArray into the pixel mask specified by the parameter Mask. The function returns the following error codes:
 0 .... everything OK
-1 ... specified mask does not exist
-2 ... size of the data array does not match the size of the pixel mask

Hint: In order to directly access the metadata of the currently loaded dataset you can use the pre-declared global variable MData.