在IE中使用双三次插值的性能影响是什么? [英] What's the performance impact of using bicubic interpolation in IE?

查看:114
本文介绍了在IE中使用双三次插值的性能影响是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

解决方案

我之前使用过它,只要你没有对图像做任何处理(淡入淡出等等)。 ),任何可能在处理图像的循环中使用javascript的东西,你应该没问题。我在处理图像时做了一些实验(通过循环),发现了一些重要的性能问题。

另外,如果您在页面上做了很多图像,那可能也很慢。


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.

解决方案

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.

这篇关于在IE中使用双三次插值的性能影响是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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