查看单个帖子
旧 2009-05-06, 10:26 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】print to scale

print to scale
print to scale
hi,
i'm trying to print to scale with version 1.09, using mfc. i use
setviewheight() and setviewcenter() methods from oddbviewportptr to change the size and position of my output, but i'm finding it hard to understand the values needed to scale the output properly. i follow these changes with a call to the resetdevice() method. they work great when i change the values for display purposes, but the values don't seem to match what i would think makes sense for printing.
i'm working with the following values:
portrait mode
8.5" x 11" paper (7.94" x 10.38" with margins) the drawing has extents of w = 8.4 and h = 6.4.
plot scale: 1" = 1 unit
to get this drawing to print at a 1 inch = 1 drawing unit using the extents plot area, i need to enter a value of 4.6 for the setviewheight() method. i haven't been able to figure out why this value works. is using setviewheight() and resetdevice() the best way to do this or am i just not understanding the value correctly?
thanks for any help you can give me.
john
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)