This article will help about to taking photo in Windows through camera capturetask and photo chooser.
The following steps will help in this regard:
Step1
Make a new project then start making two buttons named as camera4">
This article will help about to taking photo in Windows through camera capturetask and photo chooser.
The following steps will help in this regard:
Make a new project then start making two buttons named as camera4">
Go to Mainpage.cs and define the CameraCaptureTask and PhotoChooserTask
Initialize the objects of CameraCaptureTask and PhotoChooserTask in the constructor
The following image will help out you in this regard:
Now you will create two methods named CameraCaptureTask and PhotoChooserTask of void return type.
CameraCaptureTask Method:
This method will help you to figure out how to take the image in Windows Phone. This method will use the phone camera to capture the photo or retake the photo.
PhotoChooserTask:
This method will choose the photo from Windows Phone gallery, recently captured. Then open the photo in Image area at mainpage. Following image will help you out.
Finally, to show the images we are going to make two Events named as btn_CameraCapture_Click
This is the time for output. Run the emulator and you will see the following output. You have two options: cameraCapture and Gallery buttons. But first of all you have to capture the photo and then go to the gallery to see the image.