Advertisement
6_2008-2009 Internet/ HTML #195851

ColorToHex

Converts a TColor to a HTML Hex value

AI

Riepilogo AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Codice sorgente
original-source
function ColorToHex(Inp: TColor): String;
var
  tmp: Longint;
begin
  tmp:= ColorToRGB(inp);
  Result:= '#' + IntToHex(GetRValue(tmp),2) + IntToHex(GetGValue(tmp),2) + IntToHex(GetBValue(tmp),2);
end;
Upload
Upload
Commenti originali (3)
Recuperato da Wayback Machine