Captureimage

From LDTP

Table of contents

Syntax

imagecapture (<window name>, <output file>, (opt)<resolution-x>, (opt)<resolution-y>, (opt)startx, (opt)starty):

Description

Capture snap-shot of the window. Where startx & starty are offset

Refer: ldtputils.py (http://forge.novell.com/modules/xfmod/cvs/cvsbrowse.php/ldtp/pyldtp/ldtputils.py)

Example

imagecapture ('Terminal', "out.png')

NOTE: Window title name is case sensitive

Dependency

digwin binary (http://sourceforge.net/projects/ltfx), Python Imaging Library (http://www.pythonware.com/products/pil/)