Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

Como usar autofoco

From Wiki
Jump to: navigation, search
Article Metadata

Compatibilidade
Artigo
Tradução:
Por valderind4
Última alteração feita por hamishwillee em 29 Jul 2013

Note que os controles AMMS da câmera relacionados(pacote javax.microedition.amms.control.camera) são parcialmente suportados apenas em dispositivos Series40 6ª edição (mas apenas com players "capture://image")

Para conferir quais os pacotes AMMS estão implementados nos dispositivos Nokia você pode acessar essa página na biblioteca de desenvolvedores Java ME: Supported APIs

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"
);
 
focusControl = (FocusControl)player.getControl("javax.microedition.amms.control.camera.
FocusControl"
);
 
focusControl.setMacro(true);
 
snapshotControl.start(1);
This page was last modified on 29 July 2013, at 07:44.
209 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×