I am reading this:
https://wiki.tcl-lang.org/page/Capture+a+window+into+an+image
And I found this:
set baseImg [image create photo -format window -data $win]
Where did -format window come from?
I'm reading the manual pages of image and photo and can't find any
mention of that possibility anywhere. How did this person guess that
'window' was a valid option?
Neither can I find any clue to why the path to a widget is a valid
option for -data.
It works, but it only captures the visible part of the text widget.
I want to capture all of it. Is it possible?
I am reading this:
https://wiki.tcl-lang.org/page/Capture+a+window+into+an+image
And I found this:
set baseImg [image create photo -format window -data $win]
Where did -format window come from?
I'm reading the manual pages of image and photo and can't find any
mention of that possibility anywhere. How did this person guess that
'window' was a valid option?
Neither can I find any clue to why the path to a widget is a valid
option for -data.
It works, but it only captures the visible part of the text widget.
I want to capture all of it. Is it possible?
Luc <luc@sep.invalid> wrote:
I am reading this:
https://wiki.tcl-lang.org/page/Capture+a+window+into+an+image
And I found this:
set baseImg [image create photo -format window -data $win]
Where did -format window come from?
I'm reading the manual pages of image and photo and can't find any
mention of that possibility anywhere. How did this person guess that
'window' was a valid option?
It is an extension added on by the Img extension, which is mentioned at
the top of the page you cite:
David Easton 17 Mar 2003 This uses the *Img* package to capture a
screenshot of a widget hierarchy or toplevel window into a photo image.
And therefore the documentation for it is part of Img.
Neither can I find any clue to why the path to a widget is a valid
option for -data.
An extension provided by the Img package.
It works, but it only captures the visible part of the text widget.
I want to capture all of it. Is it possible?
IIRC the Img package capture widget to image file aspect only works for
the visible on-screen parts of widgets.
Sysop: | DaiTengu |
---|---|
Location: | Appleton, WI |
Users: | 915 |
Nodes: | 10 (2 / 8) |
Uptime: | 44:59:24 |
Calls: | 12,170 |
Files: | 186,521 |
Messages: | 2,234,572 |