This is a small blog post in which I shall explain you how to save a transparent or a .png image file in isolated storage of Windows phone app.
By default you can save a WriteableBitmap object as .jpeg image file in the isolated storage of your application using SaveJpeg method.
But you can easily add an extension to it and provide a .png method of saving the images.
You will have to follow certain steps given below to add this extension to your project
Add two external references (packages) to your project. They are
If you don’t know how to add a reference to your project you can refer to the following blog post.
Add the following class to your project.
After you have completed the above two steps. You will be provided with some additional methods for the WriteableBitmap object which are Writepng and Setsource. Using these two methods you can save a .png format file in the isolated storage of your Windows phone app.
A small example has been given below
I hope this post will be helpful to you.