高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】problems with line weight rendering
problems with line weight rendering
problems with line weight rendering
hi,
i have a problem with 1.09 dwgdirect libraries:
i have a simple gdi render device (win32) and i want display lines with
correct line weight.
with 1.08 libraries all works fine, but with new libraries the function
draw_line_weight returns an incorrect line pixel weight.
i have no control of internal variable m_lwtopixels of odgsbasedevice class,
in my code the value is always 1.0, while in dwgdirect examples is correct in
comparison the screen and device resolution.
how can i have a correct line weight value in setcurrtraits function?
what's happened between 1.08 and 1.09 libraries? are there some new
functions for the setup of resolution device?
thanks in advance.
nicola.
hi nicola,
are you storing pointer returned by setupactivelayoutviews() ? it returns wrapper of your device pointer passed in it. that wrapper handles screen resize and manage dependent values (e.g. lineweight & linetype scale and other ).
|