首页 新闻 会员 周边 捐助

wp8.1的WriteableBitmap问题

0
悬赏园豆:10 [已关闭问题] 关闭于 2015-02-01 15:05

WriteableBitmap _writeBitmap;
public async void ContinueFileOpenPicker(FileOpenPickerContinuationEventArgsargs)
{
      IRandomAccessStream fileStream;
      BitmapImage bitmapImage = new BitmapImage();
      if ((args.ContinuationData["Operation"] as string) == "Image" && args.Files != null && args.Files.Count > 0)
      {
            StorageFile file = args.Files[0];
            fileStream = await file.OpenAsync(Windows.Storage.FileAccessMode.Read);
            bitmapImage.SetSource(fileStream);
            _writeBitmap = new WriteableBitmap(bitmapImage);
            img.Source = bitmapImage;
       }

}

红色的报错: “Windows.UI.Xaml.Media.Imaging.WriteableBitmap”不包含采用“1”个参数的构造函数

凌吉吉的主页 凌吉吉 | 菜鸟二级 | 园豆:202
提问于:2015-01-31 18:13
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册