Thema: Delphi Negativ bei TImage

Einzelnen Beitrag anzeigen

xaromz

Registriert seit: 18. Mär 2005
1.682 Beiträge
 
Delphi 2006 Enterprise
 
#27

Re: Negativ bei TImage

  Alt 17. Apr 2006, 15:07
Hallo,

da hatte ich wohl auch einen kleinen Fehler drin. So ist's richtig:
Delphi-Quellcode:
function Umkehrfarbe(const Color: TColor): TColor;
begin
  Result := not ColorToRGB(Color) and $FFFFFF; // Erstes Byte muss null sein
end;
@Hawkeye: Das mit dem Rotanteil war ja nur ein Beispiel...

Gruß
xaromz
  Mit Zitat antworten Zitat