Declaration: TMetaData.SavePixMask (FName: string);
Stores the entire set of pixel masks as a binary file whose name is specified by FName. Please note that SavePixMask does not save the pixel mask names, it saves only the masks.

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