Advertisement
3_2004-2005 Internet/ HTML #148173

ColorToHex

Converts a TColor to a HTML Hex value

AI

Resumo por IA: 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.

Código fonte
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
Comentários originais (3)
Recuperado do Wayback Machine