插值模式.高

发布于 2024-07-17 16:40:58 字数 395 浏览 4 评论 0原文

我试图找出 .Net 中 High 和 HighQualityBicubic InterpolationMode 之间的区别(System.Drawing.Drawing2D.InterpolationMode.High)。

High 是否意味着它将根据图像以及您正在用它做什么来选择最佳算法? 它只是 HighQualityBicubic 的别名吗? 还有别的事吗?

根据 MSDN 文档,

- 指定高质量插值。

HighQualityBicubic - 指定高质量双三次插值。 预过滤是 以确保高质量收缩。 此模式产生最高质量 转换后的图像。

I am trying to figure out the difference between High and HighQualityBicubic InterpolationMode in .Net (System.Drawing.Drawing2D.InterpolationMode.High).

Does High mean that it will pick the best algorithm based on the image and what you are doing with it? Is it just an alias for HighQualityBicubic? Something else?

According to the MSDN documentation,

High - Specifies high quality interpolation.

HighQualityBicubic - Specifies high-quality, bicubic interpolation. Prefiltering is
performed to ensure high-quality shrinking. This mode produces the highest quality
transformed images.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

花海 2024-07-24 16:40:58

.NET 中有很多看似重复的条目,尤其是 System.Drawing。 我想它们是为了将来可能添加的东西而存在的。 HighQualityBicubic 特别要求 Bicubic,而 High 将使用当时最好的。

明天有人可能会发现一种超级棒的调整大小算法,让其他算法相形见绌。 高将允许 .NET.NEXT 使用它。

不过,这只是一个理论。 某处可能有相关文档,但现在是睡觉时间了;)

There are a lot of seemingly duplicate entries like this in .NET, especially System.Drawing. I imagine they're there for possible future additions. HighQualityBicubic specifically requests Bicubic, whereas High will use the best available at the time.

Someone might discover a super-awesome resizing algorithm tomorrow that puts all other before it to shame. High would allow .NET.NEXT to use that.

Just a theory, though. There's probably docs on it somewhere, but it's bedtime ;)

厌倦 2024-07-24 16:40:58

我设置 Graphics.InterpolationMode 并读回每个可能值的值。

我发现 Default 和 Low 变成 Bilinear,High 变成 HighQualityBicubic。

I set Graphics.InterpolationMode and read back its value for every possible value.

I found that Default and Low become Bilinear, and that High becomes HighQualityBicubic.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文