ImageEn, unit imageenview

TIEChromaKeyOptions.Tolerance

TIEChromaKeyOptions.Tolerance


Declaration

property Tolerance: Double;


Description

The level of tolerance when seeking similar colors to our key color. Range: 0.0 to 1.0.

Default: 0.21


Examples

procedure TMainForm.trkToleranceChange(Sender: TObject);
begin
  // Adjust tolerance and update selection
  ImageEnView1.ChromaKeyOptions.Tolerance := trkTolerance.Position / 100;
  ImageEnView1.SelectChromaKey();
end;

// Use Smart Eraser Brush tool
ImageEnView1.ChromaKeyOptions.Tolerance := 0.15;
ImageEnView1.BrushTool.BrushFill := iebfSmartEraser;
ImageEnView1.MouseInteractGeneral := [ miBrushTool ];