AdjustImgStackLayerParams

Declaration: AdjustImgStackLayerParams(StackLayer, Visibility, BlendWgt, BlendMode: integer): integer;
Adjusts the parameters of a particular layer of the image stack. The parameter StackLayer specifies which layer has to be adjusted (valid range: 1 ... 8). The Visibility may assume the following values:
0 ... hide the specified layer
1 ... show the specified layer
2 ... show the specified layer and hide all other layers
The parameter BlendWgt determines the opacity of the corresponding layer and may assume values between 0 and 100 (percent). A value of -1 leaves the blending weight unchanged.

The parameter BlendMode controls the type of the combination (see the section on the image stack for details):

-1 ... do not change the blending mode
 0 ... Opaque
 1 ... Mix
 2 ... Add
 3 ... Subtract
 4 ... Multiply
 5 ... Min
 6 ... Max
 7 ... Difference
 8 ... Exclusion
 9 ... WhiteMix
10 ... HSI Fusion
11 ... Brovey

The function returns the following error codes:

 0 ... everything is OK
-1 ... StackLayer does not exist
-2 ... invalid BlendWgt
-3 ... invalid BlendMode
-4 ... invalid Visibility