RemoveColor

procedure RemoveColor(img: TImage32; color: TColor32);


Removes the specified color from the image, even when that color is blended with other colors.
See https://stackoverflow.com/questions/9280902/

Example

uses Img32, Img32.Extra, Img32.Fmt.PNG;
...
img := TImage32.Create;
img.LoadFromFile('beetle_aq.png');
//remove color aqua
EraseColor(img, clAqua32); 
img.SaveToFile('beetle_2.png');
img.Free;
    
Before:
After:

See Also

FilterOnColor, ReplaceExactColor