在 Windows 10 全屏模式下使用 CameraCaptureUI
Using CameraCaptureUI in Windows 10 fullscreen
他们是否可以告诉 CameraCaptureUI,它应该以全屏模式启动,而不是小 window?
我当前来自链接网站的代码:
CameraCaptureUI cameraUI = new CameraCaptureUI();
Windows.Storage.StorageFile capturedMedia =
await cameraUI.CaptureFileAsync(CameraCaptureUIMode.Video);
我的应用程序基于 Windows 8.1 的 WinRT。
在 Win 8 客户端上,相机应用程序只是全屏启动,但在 Win 10 客户端上,它会以小 window
打开相机应用程序
当前无法通过 UWP 应用程序控制 CameraCaptureUI window 的大小。
开发团队意识到人们对此表示关注,并正在关注 How can we improve the Windows dev platform? 上的 UserVoice 请求。您可以在那里投票和发表评论,以帮助团队了解需求并适当确定优先级。
这段代码展示了如何使用 CameraCaptureUI class 拍照。代码来自 Camera capture UI sample. The dialog with the user occurs when you call the asynchronous method CaptureFileAsync.
的文件 CapturePhoto.xaml.cs
// Using Windows.Media.Capture.CameraCaptureUI API to capture a photo
CameraCaptureUI dialog = new CameraCaptureUI();
Size aspectRatio = new Size(16, 9);
dialog.PhotoSettings.CroppedAspectRatio = aspectRatio;
StorageFile file = await dialog.CaptureFileAsync(CameraCaptureUIMode.Photo);
他们是否可以告诉 CameraCaptureUI,它应该以全屏模式启动,而不是小 window?
我当前来自链接网站的代码:
CameraCaptureUI cameraUI = new CameraCaptureUI();
Windows.Storage.StorageFile capturedMedia =
await cameraUI.CaptureFileAsync(CameraCaptureUIMode.Video);
我的应用程序基于 Windows 8.1 的 WinRT。
在 Win 8 客户端上,相机应用程序只是全屏启动,但在 Win 10 客户端上,它会以小 window
打开相机应用程序当前无法通过 UWP 应用程序控制 CameraCaptureUI window 的大小。
开发团队意识到人们对此表示关注,并正在关注 How can we improve the Windows dev platform? 上的 UserVoice 请求。您可以在那里投票和发表评论,以帮助团队了解需求并适当确定优先级。
这段代码展示了如何使用 CameraCaptureUI class 拍照。代码来自 Camera capture UI sample. The dialog with the user occurs when you call the asynchronous method CaptureFileAsync.
的文件 CapturePhoto.xaml.cs// Using Windows.Media.Capture.CameraCaptureUI API to capture a photo
CameraCaptureUI dialog = new CameraCaptureUI();
Size aspectRatio = new Size(16, 9);
dialog.PhotoSettings.CroppedAspectRatio = aspectRatio;
StorageFile file = await dialog.CaptureFileAsync(CameraCaptureUIMode.Photo);