GetMaskArray

Declaration: TMetaData.GetMaskArray (ixMask: integer; var MaskArray: TBool2DArray): integer;
Copies the values of the pixel mask specified by the parameter ixMask into the two dimensional dynamic array MaskArray. The MaskArray parameter is an array of boolean values and is automatically resized to fit the data. The function returns the following error codes:
 0 .... everything OK
-1 ... specified mask does not exist

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