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

About this user

Korakot Chaovavanich http://korakot.stumbleupon.com

« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS 

taking a screenshot

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.
« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS