首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > .NET >

图元文件展示

2012-09-15 
图元文件显示Delphi(Pascal) codevarmf : TMetafilemc: TMetafileCanvasmf:TMetafile.Createmf.Width:

图元文件显示

Delphi(Pascal) code
var  mf : TMetafile;  mc: TMetafileCanvas;  mf   :=   TMetafile.Create;  mf.Width   :=  1024;  mf.Height   :=  800;  mc :=TMetafileCanvas.Create(mf,   0);  //画图  //……  img1.Canvas.Draw(0,0,mf);


以上可以将图元文件显示到img1 上,而bitblt、StretchBlt都不行。

请问如何显示mf的某个区域

[解决办法]
图元中存放的是 绘图命令,
应该不可以分块,除非你先把图元绘制到image上 再分块

热点排行