Camera API for a Windows 8 Tablet on Visual Studio Express 2013 (For Windows Desktop) -


i want write program tablet using visual studio express 2013 (for windows desktop). tablet running windows 8.1 pro.

for compatibility , ease of programming, continue working in vs express 2013 windows desktop.

i want program use device's camera capture functionality. hope simple using libraries/apis known. however, of documentation , forum posts have read far suggest wia (windows image acquisition) library use desktops , windows media capture must used windows 8.1.

is there better way?

all need specify captureelement , button capture picture shown below

    <captureelement x:name="cap1" height="300" width="450"/>     <button content="take photo" x:name="btncapture" horizontalalignment="stretch"                 verticalalignment="stretch" click="btncapture_click"/> 

here code behind button :

      private async void btncapture_click(object sender, routedeventargs e)     {         var _mediacapture = new mediacapture();         await _mediacapture.initializeasync();         cap1.source = _mediacapture;         await _mediacapture.startpreviewasync();     } 

remember need use async , await keywords process asynchronous .


Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -