CopyToImgStack

Declaration: Frm2DImg.CopyToImgStack(ImgHandle, Visibility, BlendWgt, BlendMode: integer): integer;
Copies the image specified by the parameter ImgHandle to the first free layer of the image stack. ImgHandle may assue values between 0 and 16; a zero value indicates the current image display on the "Raw Data" tab of the 2D Imager, a value greater than zero specifies the corresponding special image. The parameter Visibility controls the visibility:
0 ... hide the created layer
1 ... show the created layer, leave the visibility of all other layers unchanged
2 ... show the created 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).

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

 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 delivers the following return codes:

>0 ... everything is OK, the returned number is the index of the used stack layer
-1 ... stack is full
-2 ... invalid BlendWgt
-3 ... invalid BlendMode
-4 ... invalid Visibility
-5 ... image does not exist


Last Update: 2020-Mar-05