GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  TK::WINPHOTO (3)

.ds Aq ’

NAME

Tk::WinPhoto - Load a Photo image from a window

CONTENTS

SYNOPSIS



  use Tk;
  use Tk::WinPhoto;

  my $image = $mw->Photo(-format => Window, -data => oct($mw->id));
  $image->write($path_name, -format => BMP|PPM|XPM);



DESCRIPTION

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.

AUTHOR

Nick Ing-Simmons <nick@ni-s.u-net.com>
Search for    or go to Top of page |  Section 3 |  Main Index


Tk804.033 WINPHOTO (3) 2013-11-15

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.