procedure RedEyeRemove(img: TImage32; const rect: TRect);
Removes 'red eye' that's sometimes encountered in flash photography.
uses Img32, Img32.Fmt.PNG, Img32.Extra; ... img := TImage32.Create; img.LoadFromFile('redeye.png'); RedEyeRemove(img, Rect(59,87, 78,106)); RedEyeRemove(img, Rect(193,99, 212,118)); img.SaveToFile('redeye_removed.png'); img.Free;
Copyright ©2010-2023 Angus Johnson - Image32 4.8 - Help file built on 17 Jan 2025