AddPixMask

Declaration: TMetaData.AddPixMask (MaskName: string): integer;
Adds a new pixel mask. The name of the new mask is specified by the parameter MaskName. The function returns the index of the new mask (or zero if the maximum number of masks (32) has been reached).

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