我正在使用相机应用,我需要使用曝光,ISO等高级设置。
根据this article(2014年8月19日)或this one,我必须使用" PhotoCaptureDevice"而不是"相机"类。
问题是当我在带有Windows Phone 8.1项目的Visual Studio Premium 2013更新3上使用它时,我得到了以下变暖:
' Windows.Phone.Media.Capture.PhotoCaptureDevice'已过时:Windows Phone.Media.Capture可能在Windows Phone的未来版本中不可用。从Windows Phone Blue开始,请改用Windows.Media.Capture'
我想听谁,Visual Studio或msdn手册?
答案 0 :(得分:0)
使用非常简单。
完整的示例应用程序可在此处获取:
MediaCapture class滚动到底部。
至于您的高级设置,假设您的MediaCapture
被命名为mc
,那么它全部在
在
mc.VideoDeviceController structure
VideoDeviceController MSDN Link
您可以通过以下方式设置这些设置:
// set the brightness (0 representing blanking and 10000 representing pure white)
mc.VideoDeviceController.Brightness.TrySetValue(5000);