Answer the question
In order to leave comments, you need to log in
How to save png or gif image in Windows Phone 8 from C# code?
You need to save the image in Windows Phone 8 to the "Saved Pictures" album in gif and png format . When using MediaLibrary().SavePicture , it always saves in jpg format , even when I explicitly substitute the extension.
For example,
new MediaLibrary().SavePicture("name.png", stream);
saves the image name.jpgAnswer the question
In order to leave comments, you need to log in
SavePicture only works with JPEGs. For working with PNG and GIF look at third party libraries like ImageTools .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question