Created PNG don't valid in Android

Apr 9, 2013 at 12:32 PM

I create ExtendedImage and encode it with PngEncoder
ImageTools.ExtendedImage extImg = ImageTools.ImageExtensions.ToImage(wBitmap);
ImageTools.IO.Png.PngEncoder encoder = new ImageTools.IO.Png.PngEncoder();
MemoryStream ms=new MemoryStream();
encoder.Encode(extImg, ms);
Then i get byte[] from MemoryStream and ecode it to Base64 and send it to server. But when in Android i get this Base64 string from server, decode it and try to create PNG image from decoded byte[] Android can't do this and says it is unsupported format.

And vice versa, PNG created on Android and loaded in Windows Phone is not the original
Apr 17, 2013 at 11:28 AM
Perhaps the reason for this, that in your project pixel format is RGBA, and Android's is ARGB