在IE中使用双三次插值的性能影响是什么? [英] What's the performance impact of using bicubic interpolation in IE?
问题描述
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屋!