I\'m writing an application for Windows Phone 8.1.
I need to save an UIElement as an image file (I\'d prefer JPG or PNG). I\'m using RenderTargetBitmap class to do this.
I just don't want to create new question so decide to expand this one. It will be full answer for both platforms WP8 and Windows store app
Maybe you know how to convert IBuffer to byte[] in Windows Store App where we can't use this namespace: System.Runtime.InteropServices.WindowsRuntime
Regards, Marcin
Proposal solution: I use code from this post: https://stackoverflow.com/a/21490534/3139083
Thanks