ImageEn, unit imageenview

TImageEnView.SelectionIntensity

TImageEnView.SelectionIntensity


Declaration


property SelectionIntensity: Integer;


Description


Specifies the selection intensity and is valid only when the SelectionMaskDepth is 8 (8 bit), otherwise it must be 1.
You can assign a value from 0 to 255 which will be applied to the next or current selection.

See also: SelectionMaskDepth.


Demo


  Demos\ImageEditing\SoftSelections\SoftSel.dpr



Example


ImageEnView1.SelectionMaskDepth := 8;
ImageEnView1.SelectionIntensity := 128;
ImageEnView1.Select( 10, 10, 100, 100 );
ImageEnView1.Proc.Negative(); // the negative is applied at 50 % (128=semi selected)