Add a SavePng extension to WriteableBitmap (similar to SaveJpeg)
When you create a tile dynamically, it is common to want to save it as a Png file so that it uses transparency (so that it respects the theme accent color).
However, there is no built in method to save a WriteableBitmap as a png.
There is however a nice extension to save it to jpg, but that doesn't help if you want to use transparency to leverage the theme accent color in your tile.
I think many apps that need to generate a tile dynamically will encounter this issue.
In Windows 10, we have adaptive tiles so that can help unblock scenario. Rene’s WriteableBitmapEx does have this as well. (https://github.com/teichgraf/WriteableBitmapEx/)
While there is a great 3rd party library to unblock this, we will keep this item open as it isn’t built directly into the framework.
three years passed and still mark as "on the backlog"?!
Alexander Logger commented
Why there is no SavePng() method yet? 2 years have passed.
should add it... searched all day for this...
This is currently available via http://writeablebitmapex.codeplex.com/
If a writeable bitmap can be saved as a jpeg, there's no reason why it cannot be saved in a png. There are times when saving a png is useful, such as creating tiles that adhere to the theme colors.