简体   繁体   中英

How to compress the image to 70% in the Windows Store apps?

In my application, i suppose to compress the image into 70% in Windows Store apps. I could find the following code snippet in the Windows Phone 8.

How do I compress an image on Windows Phone

In the above link, i can make use of the SaveJpeg method to do the compression with the mentioned quality. Precisely i need the same scenario in the Windows Store apps. I have to compress the given image stream into 70% quality. Is there any way to achieve this in the Windows 8 apps ?

Please find the link to compressed the image in windows store app.

http://msdn.microsoft.com/en-us/library/windows/apps/jj218354.aspx

Code sample is given in Javascript, which can be easily changed to c#.

This should work.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM