缩小图像而不失去角度和质量 [英] shrink image without losing dimesions and quality

查看:45
本文介绍了缩小图像而不失去角度和质量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是他们以任何方式缩小图像而不会降低质量。



我需要任何算法或c#编码来实现这一点。

is their any way to shrink image without losing quality.

I require any algorithm or c# coding to make this.

推荐答案

没有。没有通用的魔法可以做到这一点,否则你可以反复将它应用到上面的图像输出,并将任何图像缩小到2K而不会丢失信息或质量。



有一些方法可以使图像文件更小,但它们都涉及丢弃某种信息,主要是用户没有注意到的方式。例如,一个100x40位图大约是18K,但作为一个JPG文件,它可能要小得多,可能是10K,也许是5K - 这取决于内容。但它通过以用户不会注意到的方式丢弃准确性来做到这一点 - 如果您加载位图,将其保存为jpeg,然后将其作为jpeg加载并再次将其另存为不同的jpeg。将输出与原始位图输入进行比较,你会发现一些模糊,一些颜色范围不足等等,你不必在单独查看图像时发现它。
No. There is no generic magic which will do this, otherwise you could just apply it to the output of your image above repeatedly, and shrink any image down to 2K without loosing info or quality.

There are ways to make image files smaller, but they all involve throwing away information of some kind, mostly in ways that the user doesn''t notice. For example, an 100x40 bitmap would be around 18K, but as a JPG file it could be a lot smaller maybe 10K, maybe 5K - it depends on the content. But it does that by throwing away accuracy in ways users don''t notice - you would though if you load a bitmap, save it as a jpeg, then load it as a jpeg and save it again as a different jpeg. Comparing the output with the original bitmap input, and you will notice some blurring, some lack of range in the colours, and so forth, that you don''t necessarily spot when looking at the image alone.


这篇关于缩小图像而不失去角度和质量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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