在 IE 中使用双三次插值对性能有何影响?

发布于 2024-09-10 06:53:57 字数 171 浏览 3 评论 0原文

大家都知道 IE7 在缩放图像方面很糟糕。我最近刚刚发现使用 img { -ms-interpolation-mode: bicubic; 的技巧; } 强制 IE 在缩放图像时使用双三次采样,以便它们看起来更好。但是,我想知道是否有人知道使用 ms-interpolation-mode 的性能影响。

Everybody knows that IE7 sucks at scaling images. I just recently discovered the trick of using img { -ms-interpolation-mode: bicubic; } to force IE to use bicubic sampling when scaling images so that they look better. However, I was wondering if anyone knows the performance impact of using ms-interpolation-mode.

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

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

发布评论

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

评论(2

怪异←思 2024-09-17 06:53:57

它会比最近邻慢,但会给你一个更好的图像。你应该计时并看看它是否重要。

It will be slower than nearest-neighbor, but give you a better image. You should just time it and see if it matters.

远昼 2024-09-17 06:53:57

我以前用过它,只要你不对图像做任何事情(褪色等),任何可能在处理图像的循环中使用 javascript 的事情,你应该没问题。我在处理图像(通过循环)时所做的一些实验发现了一些重大的性能问题。

另外,如果您在页面上处理“大量”图像,速度也可能会很慢。

I've used it before, and as long as you are not doing something to the image (fading it, etc.), anything that might use javascript in a loop that is processing the image, you should be fine. Some experiments I had done in processing the image (through a loop) found some significant performance issues.

Also, if you are doing 'a lot' of images on the page, that could be slow as well.

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