Never been to DZone Snippets before?

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

taking a screenshot (See related posts)

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.
   1  
   2  import graphics
   3  im = graphics.screenshot()
   4  im.save(u'C:\\test.png')

You may notice the difference. Now you can save it in 'jpg' or 'png'
as you like by specifying the filename.

You need to create an account or log in to post comments to this site.


Click here to browse all 5349 code snippets

Related Posts