一句话为当前窗口客户区捉图: GetFormImage

unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls;

type
  TForm1 = class(TForm)
    Button1: TButton;
    procedure Button1Click(Sender: TObject);
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
begin
  Self.GetFormImage.SaveToFile('c:\temp\Form1.bmp');
end;

end.

 
 
 
 
 

 

 
  

你可能感兴趣的:(一句话为当前窗口客户区捉图: GetFormImage)