Declaration: TMetaData.ClearPixMask (ixMask: integer): integer;
Resets the pixel mask specified by the index Mask (valid range 1..32). All bits of the mask are set to zero.

The function returns the following error codes:

 0 ... everything OK
-1 ... the Mask parameter was invalid (valid range 1..32)

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