[Tkinter-discuss] Convert Canvas to bitmap image

Vasilis Vlachoudis Vasilis.Vlachoudis at cern.ch
Tue Oct 24 05:38:42 EDT 2017

Thank you very much!

It is a good option to explore.


From: Tkinter-discuss [tkinter-discuss-bounces+vasilis.vlachoudis=cern.ch at python.org] on behalf of Michael Lange [klappnase at web.de]
Sent: Monday, October 23, 2017 19:07
To: tkinter-discuss at python.org
Subject: Re: [Tkinter-discuss] Convert Canvas to bitmap image

On Mon, 23 Oct 2017 18:53:24 +0200
Michael Lange <klappnase at web.de> wrote:

> you can use the tkImg library to do that. tkImg's "window" image type
> allows you to create "screenshots" of Tk widgets on the fly.

Oh, and I forgot to mention, with the window image type it is necessary
that the canvas is *completely* visible on the screen, otherwise you
might end up with blacked-out image parts or even a TclError. So for a
real big canvas that requires scrolling I am afraid this is no option.

Best regards


.-.. .. ...- .   .-.. --- -. --.   .- -. -..   .--. .-. --- ... .--. . .-.

War isn't a good life, but it's life.
                -- Kirk, "A Private Little War", stardate 4211.8
Tkinter-discuss mailing list
Tkinter-discuss at python.org

More information about the Tkinter-discuss mailing list