Caption:= Format('#%.2x%.2x%.2x', [251, 246,111]);
das ist von
rgb in Hex, oder?
Mit GetGValue():
Delphi-Quellcode:
var
Col: Cardinal;
begin
Col:= $FBF66F;
Caption:= Format('%d %d %d',[GetBValue(Col), GetGValue(Col),GetRValue(Col)]);
wäre eine Möglichkeit.[/quote]
und das von hex in
rgb oder???
aber wie kann man jetzt eine fläche im formular mit einer
rgb-farbe oder hex farbe füllen?? da gibts doch bloß die normlaen grundfarben, oder?

Zitat von
dajuhsa:
IntToHex ?
MyHex := '#' + IntToHex(MyRGB, 2);
das ist doch nur für normale zahlen, oder??
weil myRGB muss ja 3 zahlen haben