Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/vb.net/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Vb.net 在VB中使用CameraCaptureUI捕捉多张图片_Vb.net_Camera_Capture - Fatal编程技术网

Vb.net 在VB中使用CameraCaptureUI捕捉多张图片

Vb.net 在VB中使用CameraCaptureUI捕捉多张图片,vb.net,camera,capture,Vb.net,Camera,Capture,我正在编写一个应用程序,它将拍摄多张照片,这些照片稍后将被重命名和移动。我要做的第一步就是打开相机本身。当我尝试创建CameraCaptureUI类时,它只生成一个不做任何事情的空白类 我已经搜索了MicrosoftCameraCaptureUI文档,但我只能用他们的代码打开它,到目前为止,我尝试过的任何东西都不起作用 我只希望当用户选择开始按钮时,ccui弹出。这对我来说很有效 var capture = new CameraCaptureUI(); capture.Photo

我正在编写一个应用程序,它将拍摄多张照片,这些照片稍后将被重命名和移动。我要做的第一步就是打开相机本身。当我尝试创建
CameraCaptureUI
类时,它只生成一个不做任何事情的空白类

我已经搜索了MicrosoftCameraCaptureUI文档,但我只能用他们的代码打开它,到目前为止,我尝试过的任何东西都不起作用

我只希望当用户选择开始按钮时,ccui弹出。

这对我来说很有效

var capture = new CameraCaptureUI();
        capture.PhotoSettings.Format = CameraCaptureUIPhotoFormat.Jpeg;
        capture.PhotoSettings.MaxResolution = CameraCaptureUIMaxPhotoResolution.HighestAvailable;

        var result = await capture.CaptureFileAsync(CameraCaptureUIMode.Photo);
        if (result == null) return null;
var copy = await result.CopyAsync(KnownFolders.PicturesLibrary, fileNameNoEx + result.FileType, NameCollisionOption.GenerateUniqueName);
                aPath = copy.Path;