From: Ralf Date: 2003-01-31T23:25:25+09:00 Subject: Re: How to save Tk canvas as picture/create image from canvas? nagai@ai.kyutech.ac.jp wrote: > -------------------------------------------------- > ph = TkPhotoImage.new('format'=>'window', 'data'=>canvas_widget_path) > -------------------------------------------------- > I cannot test it, because my Tk doesn't support 'window' format. Neither does mine, it seems, but ... ph = TkPhotoImage.new('format'=>'gif','data'=>@hjgjkgjg) #nonsense data gives this (inspect): # So it "seems" to work, but ... ph = TkPhotoImage.new('format'=>'gif', 'data'=>@can) #data: my canvas leads to: "couldn't recognize image data". Same for 'data'=>@can.path I'm confused once more ... Thanks for your continued support! Cheers, Ralf.