取屏幕点的颜色值

var
  Str: TPoint;
  BarHand: THandle;
begin
  GetCursorPos(Str);
  BarHand := GetDC(0);
  Panel1.Color := GetPixel(BarHand, Str.X, Str.Y);
  Caption := IntToStr(Panel1.Color);
posted @ 2008-12-24 18:11  谭志宇  阅读(156)  评论(0编辑  收藏  举报