# TODO: Support printer surfaces?

0 views
Skip to first unread message

David Hughes

unread,
Aug 6, 2009, 10:48:31 AM8/6/09
to wxPyth...@googlegroups.com
What is the outlook for this comment in wx.lib.cairo.py? I'm creating drawings using wx.lib.graphics.py, mainly because the GraphicsContext API matches the format of my source data much more closely than wx.DC. It is essential to be able to print the results and I can do so by drawing to a bitmap in a MemoryDC and transferring it to a PrintDC. Unfortunately it takes ages to create the 300+ dpi bitmaps needed for an acceptable resolution (and then even longer to print them to a network printer) compared with drawing directly to a PrintDC.

--
Regards,

David Hughes
Forestfield Software
 

Robin Dunn

unread,
Aug 6, 2009, 3:54:16 PM8/6/09
to wxPyth...@googlegroups.com

I haven't spent any time on it, so I'm not sure if it's doable yet. It
may already work on Windows (if you change wxcairo.py to allow it) since
Cairo is simply using the HDC to make the connection. I don't know
about the other platforms.

--
Robin Dunn
Software Craftsman
http://wxPython.org

David Hughes

unread,
Aug 17, 2009, 10:26:19 AM8/17/09
to wxPyth...@googlegroups.com
Just for the record, I tried it using Windows. It sort of worked. The text was all in one corner, at about an eighth of its proper size. Most of the graphics drawing printed but very fuzzy due, and I'm guessing, to the anti-aliasing that's applied to the on-screen display
--

Regards,

David Hughes

Reply all
Reply to author
Forward
0 new messages