# Does not work if anything is overlapping the canvas,
# and only does the currently visible area.
exec xwd -id [winfo id $canvaswidget] | convert - foobar.png[But only available for X, that is, essentially, Unix.] # Does not work if anything is overlapping the canvas,
# and only does the currently visible area.
exec xwd -id [winfo id $canvaswidget] | convert - foobar.png[But only available for X, that is, essentially, Unix.]