Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 08:45, 25 September 2007.

How to take snapshot using JSR234

From Forum Nokia Wiki


player = Manager.createPlayer("capture://video");
player.realize();
videoControl = (VideoControl)player.getControl("VideoControl");
videoControl.initDisplayMode(VideoControl.USE_DIRECT_VIDEO, <your canvas>);
videoControl.setDisplayLocation(0,0);
videoControl.setDisplaySize(176,208);
snapshotControl = 
         (SnapshotControl)player
           .getControl("javax.microedition.amms.control.camera.SnapshotControl");
snapshotControl.start(1);

Refer to the API documentation for further details on the use of SnapshotControl. Basically, the argument of start is the maximum number of pictures to be taken.

Related Discussions
Thread Thread Starter Forum Replies Last Post
#error no typedef for __TText DrChandra General Symbian C++ 0 2004-09-23 15:42
Yucca: Storing images techno2003 General Symbian C++ 2 2003-07-03 05:36
Video property MMAPI kapitany1 Mobile Java Media (Graphics & Sounds) 4 2005-09-05 00:19
Bug in emulator's camera? liuajie Symbian Tools & SDKs 2 2002-12-02 23:20
6280 camera capture - no image returned? neomedia Mobile Java Media (Graphics & Sounds) 10 2006-11-20 13:29
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtopicQUqfnTopicZjavaQ
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX