试试这个:
uses
Graphics;
function ColorToHex(const color: TColor): string;
begin
result := '$' + IntToHex(ColorToRGB(color), 6);
end;
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4601 次 |
| 最近记录: |