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