高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】printing
printing
printing
hi, i'd need help with the printing of dwg's... right now the dwg related code is in a dll that is called from a delphi application. the delphi application manages the whole printing aside from the rendering of the drawing...
in some drawings like the one attached, its nothing special, but if i check the "color" printing in the viewers we have and call the dll, it will print the background in black, and the lines and text in grayscale but very dark grayscale...
and in black and wwhite printing it prints everything in black no matter what that drawing shows (for example provided)
i need to be able to print using b&w so that background is white and rest is black... with maybe some grayscale... but i need tob e able to set backgroud to white for sure...
does anyone have any idea how to do that?
(i've tried printing and previewing with the sample app and all it did was crashing with assertion error)
thanks in advance for the help
attached files
hi,
use odgsdevice::setlogicalpalette() to set desired palette.
hi, thanks for reply, i didn't have time to post an update but i have managed to get it to work properly after a bit of trial and error using the palette and the plotgeneration, now it works fine in both b&w as well as color printing
|