ViewFinder切断细节,图像有暗边

时间:2014-10-16 19:25:28

标签: c# xaml windows-runtime windows-phone-8.1

这是我的XAML文件中的CaptureElement

<CaptureElement x:Name="PhotoPreview" Stretch="UniformToFill" />

这是我的.cs文件

PhotoPreview.Source = _mediaCapture;
PhotoPreview.FlowDirection = FlowDirection.LeftToRight;
await _mediaCapture.StartPreviewAsync();

当我的取景器启动时,它会显示一个16:9的视图。左右两侧有黑条。拍摄图像时,只有取景器中显示的内容在图像中是正确的。 “黑条”中的所有内容都在图像中,但它几乎就像没有捕捉到亮度。唯一出现的东西是白色,它们呈现深绿色。我不知道如何上传图片,所以我不知道如何将它附加到这个问题上。

var imageProperties = Windows.Media.MediaProperties.ImageEncodingProperties.CreateJpeg(); var fileLoc = await ApplicationData.Current.TemporaryFolder.CreateFileAsync("image.jpg", CreationCollisionOption.ReplaceExisting); await _mediaCapture.CapturePhotoToStorageFileAsync(imageProperties, fileLoc); this.Frame.GoBack();

0 个答案:

没有答案