Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 425 Bytes

screenshot.rst

File metadata and controls

13 lines (10 loc) · 425 Bytes

Screenshots

This service takes screenshots and returns them in 8-bit ARGB format. The resulting images are lists of bytearrays, but can easily be converted to PNGs using pypng: :

import png
image = Screenshot(pebble).grab_image()
png.from_array(image).save('screenshot.png')

libpebble2.services.screenshot