Flex:如何调整图像控件内图像的对比度/亮度?
我将图像加载到 Image
控件中,我想知道以编程方式使图像变暗/变亮的最有效方法。
I have an image loaded into an Image
control and I'd like to know the most efficient way that I can darken/lighten the image programatically.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
查看 Adobe 的 BitmapFilter 类。你可以用它做一些很酷的事情。特别是看一下它的派生类及其使用示例。
Check out Adobe's BitmapFilter class. You can do some pretty cool things with it. Especially take a look at its derived classes and their usage examples.
虽然我采用了 Robusto 的方法,但我也发现这种方法效果很好
它取自这里, Flex 中的图像操作 并且还有更多图像更改的乐趣。
Although I went with Robusto's method, I also found this that works well
It was taken from here, Image Manipulation In Flex and there is much more image altering fun as well.