EraseColor

procedure EraseColor(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 Image32, Image32_Extra, Image32_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

ReplaceColor