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 <[email protected]d> 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: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 714 |
| Nodes: | 16 (2 / 14) |
| Uptime: | 133:50:05 |
| Calls: | 12,087 |
| Files: | 14,997 |
| Messages: | 6,517,349 |