Categories: Java | How To | Code Examples | Multimedia | Imaging
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 |
