抓取窗体或控件图片,即要用到一个新的Form2,参见《Delphi图象截取编程示例(7)》
在Main单元implementation的uses中添加Capture2。
[Capture Windows or Controls]窗体或控件抓图的Action 事件
procedure TMainForm.cptWindowsExecute(Sender: TObject);
var p:TPoint; Handles:HWnd;
begin
Inc(CaptureNum,1);
Application.Minimize ;
Delay(500);
FileName:='Capture'+IntTOStr(CaptureNum);
FileName:=DefaultDirectory+FileName;
with TForm2.Create(Application) do
try...[ 查看全文 ]