How save BitmapImage WinRT

前端 未结 5 890
攒了一身酷
攒了一身酷 2020-12-21 06:20

I have BitmapImage:

BitmapImage image = new BitmapImage();
image.SetSource(memStream);

I want to save the image to the disk to see in the f

5条回答
  •  臣服心动
    2020-12-21 07:21

    If your trying to take a ui element from your xaml and save it as an image your out of luck. In wpf there is a method on writable bitmap that takes a UIelement as a parameter but that isn't there in windows store apps.

    You can use DirectX but this is a very complicated approach. Most of the drawing apps on the store use JavaScript as its much easier to do the save.

提交回复
热议问题