Hi, On Thu, 1 Oct 2009 08:42:48 +0800 Protosssword <xs...@hotmail.com> wrote:
> > 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? > You can use the canvases postscript() method to export the whole canvas or a part of it to a postscript file or alternatively let postscript() return the postscript data. If necessary, you can use PIL to convert the postscript into png or jpeg or so. I hope this helps Michael _______________________________________________ Tkinter-discuss mailing list Tkinter-discuss@python.org http://mail.python.org/mailman/listinfo/tkinter-discuss