A lot of people use smartphones to take high-quality photos. Of course, they can be taken not only using a built-in application, but also with additional ones. In this recipe, you will learn how to add such a feature to your application.
As an example, you will prepare a page with a Take a picture! button. After clicking on it, the process of taking a photo from a camera will be started, using the built-in user interface. When a photo is taken, it will be saved to the Album
directory and presented on the page.
To prepare an example that allows a user to take an image from the camera, using the built-in user interface, and save it as .jpg
file, perform the following steps:
Enable the Webcam capability by double-clicking on the
Package.appxmanifest
file in the Solution Explorer window, choosing the Capabilities tab, and selecting the Webcam checkbox.Add the...