Saving in PyMT

12 views
Skip to first unread message

rogiermars

unread,
Apr 6, 2011, 10:45:18 AM4/6/11
to pymt-dev
Don't know if it is still time to talk about PyMT? But I take a
chance

Is it possible to save images in PyMT?

We have a simple drawing app on existing pictures. Now we want to save
the picture with the drawing on it. Is this possible? and is it
possible to save it on a other filename?

Mathieu Virbel

unread,
Apr 8, 2011, 4:57:23 AM4/8/11
to pymt...@googlegroups.com, rogiermars
Hi rogier,

You can activate the keybinding module (add line "keybinding =" in the
[modules] section of your config file), then press F12. A screenshot
of the current application will be done.

If you are drawing on a fbo, you might prefer to save your fbo. I can
only recommand you to check the opengl documentation for reading the
memory texture (glGetTexImage), then you can use pygame (check
keybinding source code) for converting opengl image memory to jpg
files.

Mathieu

2011/4/6 rogiermars <rm...@marsnewcreations.nl>:

> --
> You received this message because you are subscribed to the Google Groups "pymt-dev" group.
> To post to this group, send email to pymt...@googlegroups.com.
> To unsubscribe from this group, send email to pymt-dev+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/pymt-dev?hl=en.
>
>

Reply all
Reply to author
Forward
0 new messages