几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量  


返回   几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 » 仿射空间:CAX软件开发(三)二次开发与程序设计 » CAD二次开发 » AutoCAD二次开发 » DirectDWG
用户名
密码
注册 帮助 会员 日历 银行 搜索 今日新帖 标记论坛为已读


 
 
主题工具 搜索本主题 显示模式
旧 2009-05-06, 11:29 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】problem with odgsdeviceonsize9...0 and image resolution

problem with odgsdevice:nsize(...) and image resolution
problem with odgsdevice:nsize(...) and image resolution
hi,
i have been working on a small app that loads 2d dwg files and writes the info to an ehanced metafile.
a problem has come up under win98 (on winxp works fine), in which after i use onsize() (when creating the device -- odgsdevice), it seems like the 2d image just wraps around the visible 2d area. the only solution i have found to fix this, is to reduce the rectangle size used with onsize. however, when i do this, the resolution of the 2d image also gets affected with a very poor quality.
any help or comments regarding this problem will be more than welcome!
luis

luis, could you post some sreenshots reproducing the problem?
sincerely yours,
george udov
quote:
originally posted by george udov
luis, could you post some sreenshots reproducing the problem?
hi george...! thank you for your response. please find them attached: one with the problem, another one with the problem fixed but with the poor resolution, and finally another how it is supposed to be (from win xp).
for more info, and might be related, i call setwindoextex + setviewportextex. on the first one i set the x an y values with the physical size of the screen (obtain with getdevicecaps(..) and horzsize/vertsize) and multiplied by 100 in order to get as units 0.01 for a good resolution. then i called onsize, with this same values and it didnt work.
then i tried again but using the values obtain from odgeextents3d::maxpoint(), odgeextents3d::minpoint() for the x y values, and again scaled by 100. and it didn; work either.
please note that his problems only come up on win 98, win 2k and xp are fine.
thanks,
luis
attached images (28.2 kb, 8 views)
(12.1 kb, 8 views)
(24.0 kb, 8 views)
(14.8 kb, 6 views)


can this problem be reproduced in odamfcapp under win98?
did you use wingdi or opengl device for rendering?
sincerely yours,
george udov
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
 


主题工具 搜索本主题
搜索本主题:

高级搜索
显示模式

发帖规则
不可以发表新主题
不可以回复主题
不可以上传附件
不可以编辑您的帖子

vB 代码开启
[IMG]代码开启
HTML代码关闭



所有的时间均为北京时间。 现在的时间是 09:32 AM.


于2004年创办,几何尺寸与公差论坛"致力于产品几何量公差标准GD&T | GPS研究/CAD设计/CAM加工/CMM测量"。免责声明:论坛严禁发布色情反动言论及有关违反国家法律法规内容!情节严重者提供其IP,并配合相关部门进行严厉查处,若內容有涉及侵权,请立即联系我们QQ:44671734。注:此论坛须管理员验证方可发帖。
沪ICP备06057009号-2
更多