Tuesday, 24 May 2011

flex4, how to make an image brighter, i.e. for focus purposes, without modify it


situation

how to make easy(!) modifications in Image components with out modifying their data. The data modification (image modification) requires a lot cpu resources as result low performance.
problem

adobe flex4 AS3.0
how to make an image brighter, i.e. for focus purposes, without modify it

> page: dn
difficulty level

2/10 :)
compatibility

flex4, as3
solution

- drop a Label on the Image component to cover it, clear text property
- on this Label... set as background color the white color
- also set as blendmode the "overlay" value
- also set as backgroundAlpha the value 0.5
- now... on runtime play with "alpha" property of the Label with values 0..400




No comments:

Post a Comment