CentOS 7.0 - man page for tk::winphoto (centos section 3)
|Linux & Unix Commands - Search Man Pages
WinPhoto(3) perl/Tk Documentation WinPhoto(3)
Tk::WinPhoto - Load a Photo image from a window
my $image = $mw->Photo(-format => 'Window', -data => oct($mw->id));
$image->write($path_name, -format => 'BMP|PPM|XPM');
This is an extension for Tk800.* which will load a Photo image from a snapshot of an X
window specified by the -data option.
The window must exist and be visible. Because the code allows you to capture windows not
owned by Tk it does not attempt to enforce this. If you are capturing one of Tk's windows
then use "$w->update".
If window is mapped, but obscured by other windows then what is captured is the rectangle
the window would occupy. This can be considered a feature. For Tk-owned windows
"$w->raise" can used to bring window forward.
Once the Photo is loaded it can be saved using "$image->write(-format => ...)" using any
of formats which support writing.
Nick Ing-Simmons <firstname.lastname@example.org>
Tk804.03 2014-06-10 WinPhoto(3)
All times are GMT -4. The time now is 04:06 AM.