![]() PrepareAdvancedPhotoCaptureAsync returns the AdvancedPhotoCapture object you will use to initiate photo capture. The ImageEncodingProperties class provides static methods for creating the image encodings that are supported by MediaCapture. Call the AdvancedPhotoControl object's Configure method, passing in the AdvancedPhotoCaptureSettings object you created.Ĭall the MediaCapture object's PrepareAdvancedPhotoCaptureAsync, passing in an ImageEncodingProperties object specifying the type of encoding the capture should use. In your app, after you have initialized the MediaCapture object, create an AdvancedPhotoCaptureSettings object and set the mode to AdvancedPhotoMode.Hdr. private AdvancedPhotoCapture _advancedCapture _hdrSupported = _.Contains(.Hdr) Ĭonfigure and prepare the AdvancedPhotoCapture objectīecause you will need to access the AdvancedPhotoCapture instance from multiple places within your code, you should declare a member variable to hold the object. If it does, HDR capture using AdvancedPhotoCapture is supported. Check the video device controller's SupportedModes collection to see if it includes AdvancedPhotoMode.Hdr. Determine if the device on which your app is currently running supports the technique by getting the MediaCapture object's VideoDeviceController and then getting the AdvancedPhotoControl property. Not all devices support HDR capture with AdvancedPhotoCapture. The HDR capture technique described in this article is performed using the AdvancedPhotoCapture object. HDR photo capture Determine if HDR photo capture is supported on the current device The code examples in this article use APIs in the following namespaces in addition to the namespaces required for basic media capture. ![]() For more information see, Camera Advanced Capture sample. There is a Universal Windows Sample demonstrating the use of the AdvancedPhotoCapture class that you can use to see the API used in context or as a starting point for your own app. The code in this article assumes that your app already has an instance of MediaCapture that has been properly initialized. We recommend that you familiarize yourself with the basic media capture pattern in that article before moving on to more advanced capture scenarios. This article builds on concepts and code discussed in Basic photo, video, and audio capture with MediaCapture, which describes the steps for implementing basic photo and video capture.
0 Comments
Leave a Reply. |