From: Joseph M. Newcomer on 22 Feb 2010 21:05 If you have a bitmap image which you are BitBlting onto the DC, then a printer driver *should* work, because all it has to do is take your pixels. It shouldn't care where they come from or how they are formed. Print preview is a different animal, and I don't do a lot of print preview work, but it probably has to do with the DC preparation. In this case, without a simple example to show it, it may not be possible to help much. But from what you describe, both the print preview and the printer should work, providing the printer does support bitmaps (most printers do, but you should use GetDevCaps to make sure your printer can handle bitmaps). I'm at somewhat a loss as to what to suggest, because it sounds like you are doing all the right things. joe On Mon, 22 Feb 2010 17:09:05 +0000, phil oakleaf <news(a)oakleafsoftware.co.uk> wrote: >Thanks for all the info > >What I'm doing now is to create a Bitmap and combine the Solid Shapes >and HBITMAP in memory - then BitBlt that image back to the printer. > >So I output the solid colours on to the CDC > >The instead of just BitBlting the HBITMAP, I first BitBlt the area on >the CDC where the Tif will go into a CBitmap - this should now contain >the solid colours that will be under the TIF. > >Then I BitBlt the Tif image over that using SRCAND - this should create >the correct image. > >Finally Bitblt the HBITMAP back into the CDC > >This works beautifully on screen but on printers and print preview I >either get no colours or a big solid black block > >It seems as though the printer CDC does not have my coloured shapes > >Is this becuase the Printer CDC works differently to the screen? > >Hope this is clear enough > >Phil Joseph M. Newcomer [MVP] email: newcomer(a)flounder.com Web: http://www.flounder.com MVP Tips: http://www.flounder.com/mvp_tips.htm
From: phil oakleaf on 23 Feb 2010 02:17 Joe many thanks for the replies, This has been one of those situations where rather than solve the problem I came at it from another another direction and have managed to find a way that works thanks again and well done on the award Phil
First
|
Prev
|
Pages: 1 2 Prev: How To maintain ListControl Values Next: Cannot execute C preprocessor cl.exe |