Re: Printing a Bitmap (Win32lib)
- Posted by Jason <mirwalds at swbell.net> Jun 16, 2001
- 392 views
RC_BITBLT = 1 -- Can do standard BLT. -- > > Bernie Ryan wrote: > > > David C. what about device context? Don't you have > > to set the printer DC to do this ? > > Off the top of my head, I thought the getPrinter stuff was supposed to do > that. I'm only guessing that the problem is that the printer doesn't support > BitBlt, but because none of the other operations failed, it's a likely > candidate. > > As Euman pointed out, you can test this by calling GetDeviceCaps. I'd have > tested it, but I don't have the constants RC_BITBLT handy. > > If it turns out that this is why the BitBlt fails (and at this point, it's > just a conjecture), it would make sense to add the GetDeviceCaps test to > BitBlt in the case of Printer, and fall through to David's code if it's not > supported. > > -- David Cuny >