Windows Phone 8, how to convert image to .png?

For Windows Phone 8 (and I guess it will look like Windows 8), how do I convert any image that they get into .png?

For example, I get .jpeg or .gif, and I convert it to .png.

I would also be interested in turning .png into .jpeg.

I would prefer inline methods over third-party applications.

Thanks!

+4
source share
2 answers

WP7 / WP8 has no built-in functions for converting from JPG to PNG.

One good third-party structure to use if you only need to save the WriteableBitmap since the JPEG ToolStack C # PNG Writer Library .

var myBitmap = new WriteableBitmap(tempBitmap); // Create the destitnation stream. var pngDest = new System.IO.IsolatedStorage.IsolatedStorageFileStream("test.png", FileMode.Create, isoStore); // use the WriteableBitmap extension to write out the PNG myBitmap.WritePNG(pngDest); 

If you need a more full-featured toolbox (like downloading JPG), check out WriteableBitmapEx and this great article by Rene Schulte @a href = "http://kodierer.blogspot.com/2009/11/convert-encode-and-decode-silverlight .html "rel =" nofollow "> Convert, encode, and decode Silverlight WriteableBitmap data

+3
source

One thing to consider is to use the program outside the application to convert your images.

I use paint or gimp. You can download gimp for free, and this is a good program.

Here is the start:

http://www.gimp.org/

-1
source

All Articles