[Tkinter-discuss] How to export the image drawn by canvas?

Lion Kimbro lionkimbro at gmail.com
Thu Oct 1 04:17:20 CEST 2009


  I don't believe there's a function.

  I've read about people making functions that save a postscript [1], and
open a command shell to instruct ImageMagick to conver it, and I've read
about people using software that bridges tkinter with PIL [2].

  As for storing animations, I've never heard of people doing that with
tkinter.

  Related wiki articles:
  * http://tkinter.unpythonic.net/wiki/Images


  [1]  tkinter.Canvas.postscript:
  http://infohost.nmt.edu/tcc/help/pubs/tkinter/canvas-methods.html
  [2]  the ImageTk module
  http://www.pythonware.com/library/pil/handbook/imagetk.htm



2009/9/30 Protosssword <xsxcn at hotmail.com>

> Dears,:
>
> I use canvas to make animation by continuously displaying objects.
> Now I want to export what is displayed in canvas to an image file(.bmp,
> jpeg,png,... is OK)
> Is there such function in tkinter and how can I attain this?
>
> Thank you very much!
>
> Shengxu
>
> ------------------------------
> 立刻下载 MSN 保护盾,保障Messenger 安全稳定! 现在就下载! <http://im.live.cn/safe/>
>
> _______________________________________________
> Tkinter-discuss mailing list
> Tkinter-discuss at python.org
> http://mail.python.org/mailman/listinfo/tkinter-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tkinter-discuss/attachments/20090930/0f3148b9/attachment.htm>


More information about the Tkinter-discuss mailing list