Ticket #379 (closed defect: fixed)
wxPrintDC::DrawIcon() renders nothing
|Reported by:||jeff_s||Owned by:|
|Keywords:||wxMSWDCImpl printing wxIcon icon printer DC||Cc:||jeff_s|
Using wxMSW / wxPython 2.3.2, I have found a problem with getting a bitmap printed.
DrawRectangle, DrawText, etc, all work fine. DrawBitmap works in print preview mode; when
actually printing, it seems to work only when the (color) printer is in fast/draft mode. When the
printer is in normal/quality mode, or in *any* case on a (b&w) laser printer, nothing is displayed
where the bitmap should be. (But a rectangle drawn to the same dimensions displays fine.) This
behavior is consistent across different color (HP Deskjet 870, HP Deskjet 990) and laser (HP
LaserJet 5si, HP Laserjet 8150) printers.
However, the wxPython Demo does not have this problem--its printing sample renders bitmaps
properly on all four printers, in both draft and normal modes. I can't identify any significant
difference between the demo code and my own code, except for the image source -- I'm loading
wxImages from JPG files, then converting to wxBitmaps, while the demo is loading a wxBitmap from
saved XPM data -- but I would expect that once the wxBitmap is created, then the original source