高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】print in monochrome
print in monochrome
print in monochrome
i tried to print in monochrome on white background and following code did print almost as i wanted to. however this was not enough since lines with background color did not changed to black.
m_pprndevice->setbackgroundcolor(odrgb(255,255,255));
colorref crpalette[2] = {rgb(255,255,255), rgb(0,0,0)};
m_pprndevice->setlogicalpalette(crpalette, 2);
can anybody tell me how i can solve this?
try this:
code:
static odcolorref color [256];
zeromemory (&color, sizeof (odcolorref)*256);
m_pprinterdevice->setlogicalpalette ((odcolorref * )&color, 256);
m_pprinterdevice->setbackgroundcolor(odrgb(255,255,255));
|