Logo Search packages:      
Sourcecode: ldtp-doc version File versions  Download package

imagecapture

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

Implementation

Refer: http://webcvs.freedesktop.org/ldtp/ldtp/python/ldtputils.py

Example

from ldtputils import *

imagecapture ('Terminal', 'out.png') # out.jpg will be created in current directory. Give absolute path to save it in some other directory.

Note:
Window title name is case sensitive

Dependency

Digwin binary - http://sourceforge.net/projects/ltfx

Import utility of ImageMagick - http://www.imagemagick.org/script/import.php

Author:
Nagashree <mnagashree@novell.com>

Generated by  Doxygen 1.6.0   Back to index