![]() |
【转帖】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)); |
所有的时间均为北京时间。 现在的时间是 08:54 PM. |