i am trying to provide the Zooming functionality in camera app, for this purpose I am using MediaCapture class, all the other capabilities of MediaCapture are working properly except of Zoom, I am using the following code to achieve the zoom:
private void zoomSlider_ValueChanged(object sender, Windows.UI.Xaml.Controls.Primitives.RangeBaseValueChangedEventArgs e)
{
m_mediaCaptureMgr.VideoDeviceController.Zoom.TrySetValue(zoomSlider.Value);
}
But its not working
plz tell me how to do it??
EDIT: Code formatting correction
U can also Zoom camera view with like this in XAML
and in C#