如何才能得到屏幕上任一点的RGB值? hdc := GetDc( 0 );Canvas := TCanvas.Create;Canvas.Handle := hdc;Canvas.CopyRect( Rect(0,0,Bmp.Width, Bmp.Height), Bmp.Canvas,Rect(0,0,Screen.Width, Screen.Height ));颜色 Bmp.Pixcels[x,y] 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 procedure TForm1.FormMouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer);var a:dword; r,g,b:BYTE; pos:tpoint;begin getcursorpos(pos); a:= GetPixel(GetDc(WindowFromPoint(pos)),pos.x,pos.y);//注意!这里的pos是相对整个屏幕的坐标!!注意换算成相对该窗体的坐标! r:= GetRValue(a); g:= GetGValue(a); b:= GetBValue(a); caption:= inttostr(r)+':'+inttostr(g)+':'+inttostr(b)+':' +inttostr(pos.x)+':'+inttostr(pos.y);end; Delphi调用webservice传输数据 关于URL含中文的编码问题 如何格式化IC卡,请大家帮帮忙 提示以***开头的字符串太长,最大长度128 找个源文件 在2K下的服务进程的问题 程序(界面是一个长条)启动后停靠在桌面最上方,怎么让我的电脑等图标自动往下移动? StringGrid每列的大小可以变吗?最左列可以显示箭头吗? 刚刚形成的query记录集中可以插入记录吗?我用它的INSERTRECORD命令怎么不行? 问题多多,分数多多,答案呢?????? 我们要成立同盟,反对“语言”歧视? 各位高手,我是刚学DELPHI的菜鸟,高分请教.........
Y: Integer);
var
a:dword;
r,g,b:BYTE;
pos:tpoint;
begin
getcursorpos(pos);
a:= GetPixel(GetDc(WindowFromPoint(pos)),pos.x,pos.y);
//注意!这里的pos是相对整个屏幕的坐标!!注意换算成相对该窗体的坐标!
r:= GetRValue(a);
g:= GetGValue(a);
b:= GetBValue(a);
caption:= inttostr(r)+':'+inttostr(g)+':'+inttostr(b)+':'
+inttostr(pos.x)+':'+inttostr(pos.y);
end;