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 17:08, 24 October 2007.

Como exibir a camera e capturar imagens no Java ME

From Forum Nokia Wiki

Original: How to display the camera & take snapshots in Java ME

O código a seguir é usado para exibir a camera:

public void cameraPlayer() {
    try {
        player = Manager.createPlayer( "capture://video");
        player.realize();
            
        videoControl = ( VideoControl)player.getControl( "VideoControl");
        player.start();
    } catch ( Exception e) {} 
}

O código a seguir é usado para capturar uma imagem usando a camera no Java ME:

byte[] raw = videoControl.getSnapshot(null);
Image image = Image.createImage(raw, 0, raw.length);

O que faz: lista os modo disponívels e quando você precisa usar um localizador diferente.

Links interessantes: http://developers.sun.com/techtopics/mobility/midp/articles/picture/ http://www.java-tips.org/java-me-tips/midp/capturing-video-on-j2me-devices.html

Related Discussions
Thread Thread Starter Forum Replies Last Post
bug in camera.py? _Askin_ Python 5 2008-05-30 01:24
Fast Video Connection to Camera SendKey Symbian User Interface 0 2003-09-04 16:28
nokia 3660 camera auwuisien General Discussion 1 2005-08-09 13:37
Can i know if someone is using a camera?? rathodavinash General Symbian C++ 2 2006-01-25 11:24
N93, is it possible to hange focus from a java midlet? polly69 Mobile Java Media (Graphics & Sounds) 2 2006-12-02 09:28
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX