很急:怎样抓取屏幕?(在线等) 很急:怎样抓取屏幕?(在线等) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 // 带鼠标抓图function CaptureScreen:TBitmap;var DC : HDC; ABitmap : TBitmap; CI: TCursorInfo;begin DC := GetDC(GetDesktopWindow); ABitmap := TBitmap.Create; try ABitmap.Width := GetDeviceCaps(DC,HORZRES); ABitmap.Height := GetDeviceCaps(DC,VERTRES); BitBlt(ABitmap.Canvas.Handle, 0, 0, ABitmap.Width, ABitmap.Height, DC, 0, 0, SRCCOPY); ZeroMemory(@CI,SizeOf(CI)); CI.cbSize := SizeOf(CI); if GetCursorInfo(CI) then DrawIconEx(ABitmap.Canvas.Handle, CI.ptScreenPos.X, CI.ptScreenPos.Y, CI.hCursor, 16, 16, 0, 0, DI_DEFAULTSIZE OR DI_NORMAL); finally ReleaseDC(GetDesktopWindow,DC); end; Result := ABitmap;end; 祝大家国庆快乐!再问个问题! 怎样将数字与字符串区分开? 用DELPHI编写的NT服务数据库连接问题 在线等待 如何将数组字符串转换为String,请看下而的内容 一个简单的SQL语句! 请问那里有DELPHI5.0企业版的下载呢 头脑风暴:我想做个口语考试系统,请大家提提需求 谁能提供一个窗体融合的例子? 公布Foxmail地址簿文件格式 Delphi中建立个类,要让基类和 派生类实现的克隆操作。 莱鸟的一个简单问题 谁有FOR7.0的GIFImage控件,给我一个。收到给分。
function CaptureScreen:TBitmap;
var
DC : HDC;
ABitmap : TBitmap;
CI: TCursorInfo;
begin
DC := GetDC(GetDesktopWindow);
ABitmap := TBitmap.Create;
try
ABitmap.Width := GetDeviceCaps(DC,HORZRES);
ABitmap.Height := GetDeviceCaps(DC,VERTRES);
BitBlt(ABitmap.Canvas.Handle,
0,
0,
ABitmap.Width,
ABitmap.Height,
DC,
0,
0,
SRCCOPY);
ZeroMemory(@CI,SizeOf(CI));
CI.cbSize := SizeOf(CI);
if GetCursorInfo(CI) then
DrawIconEx(ABitmap.Canvas.Handle,
CI.ptScreenPos.X,
CI.ptScreenPos.Y,
CI.hCursor,
16,
16,
0,
0,
DI_DEFAULTSIZE OR DI_NORMAL); finally
ReleaseDC(GetDesktopWindow,DC);
end;
Result := ABitmap;
end;