标题:vfp9中两种绘图不知为什么不能合绘?
只看楼主
qzfydk
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2009-9-6
 问题点数:0 回复次数:0 
vfp9中两种绘图不知为什么不能合绘?
GDI绘图
SET PATH TO TO HOME()+'FFC' HOME()+'FFC'
loLineColor=NEWOBJECT("GpColor","_GDIPlus.vcx")
loLineColor.Set(0,0,255)
loPen=NEWOBJECT("GpPen","_GDIPlus.vcx")
loPen.Create(loLineColor,8)
loGr=NEWOBJECT("gpGraphics","_GDIPlus.vcx")
loGr.CreateFromHWND(thisform.HWnd)
loGr.DrawEllipse(loPen,0,0,thisform.Width,thisform.Height)
loLineColor.set(0,255,0)
loBrush=NEWOBJECT("gpSolidBrush","_GDIPlus.vcx")
loBrush.Create(loLineColor)
loGr.FillEllipse(loBrush,10,10,thisform.Width-20,thisform.Height-20)
loLineColor.set(255,255,0)
loPen.Create(loLineColor,10)
loGr.drawarc(lopen,thisform.Width/2-200,thisform.Height/2-200,400,400,-45,-180)
一般绘图 thisform.Line(0,0,300,300)
一般绘图会清除GDI绘图,无法混合使用
搜索更多相关主题的帖子: 绘图 
2009-09-07 00:10



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-285005-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 2.051327 second(s), 9 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved