right, it took a little more work, and there were some issues when drawing into a Cairo context using CairoCanvas, which are now fixed.

one can now snapshot into a file, Cairo surface or Cairo context. File output works fine, but the Cairo output probably could use some testing. *and* snapshots can be SVG, PS or PDF too; not just PNG, as the outdated Python module docs stated, updated now.

and this means https://code.goto10.org/projects/shoebot/ticket/66 is no more, yay!

ricardo lafuente wrote:
alright, snapshot() seems to work again now. It's on the dev tree now, please test it!

Francesco, i'm really curious about your GTK drawing hack, what's actually going on? I was a bit baffled by your 'var = pass' statement, as i've never come across such a move, but it's all good if it works! :)


ricardo lafuente wrote:
i'm on it now!
i wrote snapshot() in a hurry and didn't test it properly, since that was right when we were shifting to the shoebot-ng model (Bot+Canvas).
i hope to be bringing good news soon.

architetto francesco fantoni <hva - hermanitos verdes architetti> wrote:
I've been revising the snapshot / output to PNG issue, with no luck.
I don't know if ricardo has had the time to look at it yet.
The problem seems to be that the xlib cairo surface on which we've drawn things (win32 in case of windows I suppose) is "finished" and thus can't
be used as source, although the error message says "target" surface is
finished (and actually it doesn't make sense trying to draw to a
finished surface, while it should be obviously possible to use a
finished surface as source if it has not yet been flushed). Maybe
there's something I'm missing there, but in my opinion could be a Cairo
or pycairo bug...

_______________________________________________
Shoebot-devel mailing list
[email protected]
http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net


_______________________________________________
Shoebot-devel mailing list
[email protected]
http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net


_______________________________________________
Shoebot-devel mailing list
[email protected]
http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net


_______________________________________________
Shoebot-devel mailing list
[email protected]
http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net
  • [s... architetto francesco fantoni <hva - hermanitos verdes architetti>
    • ... ricardo lafuente
      • ... ricardo lafuente
        • ... ricardo lafuente
        • ... architetto francesco fantoni <hva - hermanitos verdes architetti>

Reply via email to