我拍了一张照片并保存了,但我需要对其进行图像处理。我尝试使用以下代码,但WritableBitmap
不接受位图,它需要一个流。
var writeableBitmap = new WritableBitmap(位图);
这是代码:
CameraCaptureUI cam = new CameraCaptureUI();
var capturedImage = await cam.CaptureFileAsync(CameraCaptureUIMode.Photo);
if (capturedImage != null)
{
var img = new BitmapImage();
img.SetSource(await capturedImage.OpenReadAsync());
}