Hello,
I am using this code to add selection to mask layer. This code was wrking properly in version 7.5 but not working in 8.x.
if not ImageEnView1.Selected then
    exit;
  ImageEnView1.LayersCurrent := 1;
  idx := ImageEnView1.LayersCreateFromSelection;
  ImageEnView1.Deselect;
  ImageEnView1.Proc.HistAutoEqualize();
  ImageEnView1.Proc.Negative;
  ImageEnView1.Proc.ConvertToGray;
  ImageEnView1.CurrentLayer.Operation := TIERenderOperation(4);
  ImageEnView1.LayersMerge(1,idx, True);
Here is a test project that will show problem.
 attach/yogiyang/2018817316_MaskProblem.zip
 54.07 KB
To test in the sample:
 - Load an Image/Photo
 - Select an area
 - Click on button: Create Mask From Selection
 - Once the loaded image/photo is masked
 - Select something outside of the visible mask area
 - Click on button: Add Selection To Mask
 
TIA
Yogi Yang