ImageEn, unit imageenview

TIEChromaKeyOptions.Mode

TIEChromaKeyOptions.Mode


Declaration

property Mode: TIEChromaKeySelectionMode;


Description

Specify whether the subject or the background is selected.

Note: This property is not used for the iebfSmartEraser Brush Tool

Default: iecSubject


Example

// Select subject in image with chroma-key background (Key color will be guessed)
ImageEnView1.ChromaKeyOptions.Mode := iecSubject;
ImageEnView1.SelectChromaKey();

// Remove background in image with chroma-key background (Key color will be guessed)
// Note: a better result is achieved by using ImageEnView1.Proc.RemoveChromaKey
ImageEnView1.ChromaKeyOptions.Mode := iecBackground;
ImageEnView1.SelectChromaKey();
ImageEnView1.Proc.ClearSel( True );