Is there any way to change the resolution of an image in the Windows Phone 8 ?. Actually i need to change the image dpi to 300 dpi. I actually have that image inside of my application. In WPF we have the following way.
Bitmap b=new Bitmap(Image)
b.SetResolution(xxx,yyy)
Is it possible to achieve the same in Windows Phone 8 ?
There is an option in the Windows Phone 8 to change the resolution of an image stream through PictureDecoder. Input should be
Width and Height for the resolution.
PictureDecoder.DecodeJpeg(jpgstream, 1200, 480);
For more information you can look at the below link.
http://blogs.msdn.com/b/swick/archive/2011/04/07/image-tips-for-windows-phone-7.aspx
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.