How to Capture Photo in Windows Phone Store App ?

Below is a sample code snippet demonstrating how to capture photo in Windows Phone Store App programmatically using C#.

How to Capture Photo in Windows Phone Store App ?

Windows.Media.Capture.MediaCapture  medCap = new Windows.Media.Capture.MediaCapture();
await medCap.InitializeAsync(); 

Also note that you need to add the camera capabilities in the manifest file for the photo capture to work.

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

In this post, you’ll learn about the Win32 Error “0x000019E5 – ERROR_COULD_NOT_RESIZE_LOG” that you get when debugging system erors in...
In this post, you’ll learn about the error “CO_E_DBERROR 0x8004E02B” that is returned when working with COM based APIs or...
In this post, you’ll learn about the Win32 Error “0x000019D0 – ERROR_LOG_BLOCK_VERSION” that you get when debugging system erors in...