本文整理自网络,侵删。
procedure TForm1.Button1Click(Sender: TObject);varaCanvas:TCanvas; i:Tbitmap;beginaCanvas:=TCanvas.Create;i:=tbitmap.Create;i.LoadFromFile('c:\1.bmp'); try aCanvas.Handle:=GetDC(0);//把桌面给acanvas aCanvas.Draw(480,300,i);
finally aCanvas.Free; end;end;
相关阅读 >>
更多相关阅读请进入《Delphi》频道 >>