Advertisement
7_2009-2012 Internet/ HTML #218369

ColorToHex

Converts a TColor to a HTML Hex value

AI

AI Samenvatting: 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.

Broncode
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
Originele reacties (3)
Hersteld van de Wayback Machine