Autor Beitrag
Maxman
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 28



BeitragVerfasst: Mo 28.04.03 19:02 
Hallo,

kann mir einer sagen, wie man den HEX-Code einer Farbe herausbekommen kann.

Danke im Voraus
Maxi
Visum
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 106



BeitragVerfasst: Mo 28.04.03 21:57 
Hi,
Farben werden eigentlich in Delphi meistens als Hex-Code verwendet.
So liefert die Funktion ColorToString() eigentlich schon den Hex-Code (mit ausnahme von clRed, clBlue, ...).

Ansonsten müsste auch
inttohex(ColorToRGB(FARBE),6)
funktionieren.
maximus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 896

Win XP, Suse 8.1
Delphi 4/7/8 alles prof
BeitragVerfasst: Mo 28.04.03 22:35 
es kann auch hilfreich sein, zu wissen, das farben in delphi in BGR order dargestellt werden.

_________________
mfg.
mâximôv