DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Taking A Screenshot

  • submit to reddit
        In py_s60 1.1.0, we can take a screenshot using camera module.
In 1.1.3, however, the feature is moved to the new graphics module.

Here's a quick example.
import graphics
im = graphics.screenshot()'C:\\test.png')
You may notice the difference. Now you can save it in 'jpg' or 'png'
as you like by specifying the filename.