FillPixAttrib

Declaration: TMetaData.FillPixAttrib (AttribLayer, AttVal: integer): integer;
Fills the pixel attributes of the attribute layer specified by AttribLayer with the value AttVal (valid range 0..127).

The function returns the following error codes:

 0 ... everything OK
-1 ... invalid AttVal parameter (valid range 0..127)
-2 ... invalid AttribLayer parameter (valid range 1..4)

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