I want to save an image using File Save Picker . I am using this link to save but it is only for text , how I modify it to save an image?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
As you have provided the link then I assume that you managed to get StorageFile after Continuation (this is how it works at WP8.1 Runtime).
I also assume that you have a Stream with your image or you know how to obtain such a one. Basing on those two, you can save your image in png format to a file selected by picker for example like this:
Also please remember to
Dispose
yourstreamToSave
(and other resources) after finishing working with them.If you take a look at BitmapEncoder and BitmapDecoder classes, then you will see more options including transformation and various properties.
(I've not tested the code above rough, but hopefully it will work fine)