FindPixMaskByName

Declaration: TMetaData.FindPixMaskByName (MaskName: string): integer;
Returns the index of the mask having the name MaskName. The function returns a zero value if the mask cannot be found, or the mask index (1..32) if a mask with the specified name exists. The search for the mask name is not case sensitive.

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