Namespaces
Variants
Actions

Como tirar foto usando JSR 234

Jump to: navigation, search
Dados do artigo

Artigo
Tradução:
Última alteração feita por hamishwillee em 08 Dec 2011


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);

Consulte a documentação da API para maiores detalhes sobre o uso de SnapshotControl. Basicamente, o argumento de início é o número máximo de imagens a serem tiradas.

This page was last modified on 8 December 2011, at 11:19.
84 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved