开发者

Flex Change image color dynamically?

I have a image declared like the following:

[Bindable]
[Embed( source="assets/banana.png" )] 
public var iconBANANA : Class;

It is involving into itemRenderer, but I wish to change the color of the image when some event occurs (like clicking above or something).

The rest of the objects used the image shall remain unchanged, only the object on which the event has occurred shall change the color of the image.

But the biggest question is :


I believe what you're looking for are Filters. What you're explaning (changing one color to another) is not exactly trivial and going into some fairly complex image manipulation but you can get some results using the ColorMatrixFilter.


You're looking for beginBitmapFill.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜