如何在C#中压缩图像(如jpg,png之类的图像) [英] how to images compress in C# (image like jpg,png)
本文介绍了如何在C#中压缩图像(如jpg,png之类的图像)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在C#中压缩图像(例如jpg,png之类的图像)
how to images compress in C# (image like jpg,png)
推荐答案
^ ]
http://blog.psychocoder.net/2010/06/25/image -compression-asp-net-wc/ [ http://savotdane.blogspot.com/2009/08/how-to-compress-resize-image-in-net-c.html [ ^ ]
http://www.c-sharpcorner.com/uploadfile/rahuldebray /compress-image-to-a-given-size/ [减小图像c#的大小 [
http://geekswithblogs.net/bullpit/archive/2009/04/29/compress-image-files-using-c.aspx[^]
http://blog.psychocoder.net/2010/06/25/image-compression-asp-net-w-c/[^]
http://savotdane.blogspot.com/2009/08/how-to-compress-resize-image-in-net-c.html[^]
http://www.c-sharpcorner.com/uploadfile/rahuldebray/compress-image-to-a-given-size/[^]
reduce size of image c#[^]
JPG和PNG图像已经被压缩,因此除非您准备降低图像质量,否则无法进一步减小文件大小.
Image.Save方法调用GDI +函数 GdipSaveImageToFile [
JPG and PNG images are already compressed, so you can''t reduce file size appreciably further unless you are prepared to lose image quality.
The Image.Save method calls GDI+ function GdipSaveImageToFile [^]with the encoderParams parameter set to null, which equates to 75%. You could use the function directly, supplying a "proper" parameter and change that to get a smaller file size, but the quality will suffer.
只需更改您在默认页面...这可能是权限问题...
Just change the path which you re giveing in the default page...this can be a permission issue...
这篇关于如何在C#中压缩图像(如jpg,png之类的图像)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文