# TODO: Support printer surfaces?

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

David Hughes wrote:

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.

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

Robin Dunn wrote:

David Hughes wrote:
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.
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.

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