我是 jQuery 的新手,并且非常喜欢它。我想知道是否有类似IE的效果,可以在运行时将图像转换为灰度?
最佳答案
看看 pixastic ...它应该可以在...
- Internet Explorer 5.5+
- Opera 9.5+
- 火狐2+
- WebKit 每晚
http://dph.am/pixastic-docs/docs/actions/desaturate/
var img = new Image();
img.onload = function() {
Pixastic.process(img, "desaturate", {average : false});
}
document.body.appendChild(img);
img.src = "myimage.jpg";
关于jQuery 将图像转换为灰度?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2474333/