lib.api.screenshot.Screenshot

Package lib :: Package api :: Module screenshot :: Class Screenshot |
[hide private]
[frames] | no frames]

# Class Screenshot

source code

Get screenshots.

Instance Methods | [hide private]
_draw_rectangle(self, img, xy) Draw a black rectangle. | source code
have_pil(self) Is Python Image Library installed? | source code
equal(self, img1, img2, skip_area=None) Compares two screenshots using Root-Mean-Square Difference (RMS). | source code
take(self) Take a screenshot. | source code

Method Details | [hide private]

### _draw_rectangle(self, img, xy) | source code
Draw a black rectangle. Parameters: `img` - PIL Image object `xy` - Coordinates as refined in PIL rectangle() doc Returns: Image with black rectangle

### have_pil(self) | source code
Is Python Image Library installed? Returns: installed status.

### equal(self, img1, img2, skip_area=None) | source code
Compares two screenshots using Root-Mean-Square Difference (RMS). Parameters: `img1` - screenshot to compare. `img2` - screenshot to compare. Returns: equal status.

### take(self) | source code
Take a screenshot. Returns: screenshot or None.