我们可以在保存c#的同时提高图像质量吗? [英] can we improve image quality while saving in c#

查看:82
本文介绍了我们可以在保存c#的同时提高图像质量吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在保存为jpeg的同时提高图像质量。我必须从.mht文件中读取图像。当我提取图像并保存到某个位置时,质量很差。我们可以在保存的同时提高图像的质量。请协助。



How to improve the image quality while saving to jpeg. I have to read images from a .mht file. When i extract the image and save to a location the quality is poor. can we improve the quality of the image while saving.Please assist.

image.Save(SourcesdirectoryPath + "\\" + "Image" + (i + 1) + ".Jpeg", ImageFormat.Jpeg);







在此先感谢。




Thanks in advance.

推荐答案

我认为不可能,对不起。 Jpeg是一种有损压缩格式,这意味着无论何时压缩图像,原始图像中的某些信息都会丢失。您无法从文件中恢复原始质量。

必须有一些算法可以对平滑度,亮度,对比度等起作用,并且可能会产生更好的质量感;但这并不能保证,相同的算法可能会导致一个图像的结果可接受,而另一个图像则不可接受。
I don't think it is possible,, sorry. Jpeg is a lossy compression format, it means that whenever an image is compressed, some informations in the original image are lost. You cannot recover the 'original' quality from the file.
There must be some algorithms that can act on smoothness, brightness, contrast, etc., and may result in a better sensation of quality; but that is not guaranteed, and the same algorithm could lead to an acceptable result for one image, and a non-acceptable for another one.


这篇关于我们可以在保存c#的同时提高图像质量吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆