全局探色器-函数

来源:互联网 发布:sql having语法 编辑:程序博客网 时间:2024/04/27 18:58

var
  pt: TPoint;
  c: TColor;
begin
  GetCursorPos(pt);
  c := GetPixel(GetDC(0), pt.X, pt.Y);
  edtColor.Text := Format('$%.6x', [c]);
end;