Screentap white balance12/30/2023 Set the slider control's value to the current value of the ExposureControl after unregistering the ValueChanged event handler so that the event is not triggered when the value is set. ![]() Get the supported values for the current device by checking the Min, Max, and Step properties, which are used to set the corresponding properties of the slider control. The exposure value must be within the range supported by the device and must be an increment of the supported step size. Set the checked state of the checkbox to indicate if automatic exposure adjustment is currently active to the value of the Auto property. ![]() If the control is supported, you can show and enable the UI for this feature. Ĭheck to see if the current capture device supports the ExposureControl by checking the Supported property. This example uses a Slider control to adjust the current exposure value and a checkbox to toggle automatic exposure adjustment. The ExposureControl allows you to set the shutter speed used during photo or video capture. The code in this article assumes that your app already has an instance of MediaCapture that has been properly initialized.Īll of the device control APIs discussed in this article are members of the namespace. ![]() 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.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |