procedure TForm1.Button1Click(Sender: TObject);
var
aCanvas:TCanvas;
i:Tbitmap;
begin
aCanvas:=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;
posted on 2009-01-18 23:27
小叶子 阅读(467)
评论(0) 编辑 收藏 引用 所属分类:
图片 GDI+