Applying colorfilter in QML, of QT
-
Hi,
I would loke to apply predefined or custom color filter on my QML application like :- change Image RGB Level
- saturation
- Hue
- ...
Ideally I would like to lower the "light" level off all the display unless the pixel Saturation is higher than XXX. This for simulating a lowering of the Ambient light without changing the part of the picture which represent Lights,LED, and all light producing element.
The following snapshot represent a LED with and without the EFFECT. BUT I would like the lit LED to be brigher:
I know I will probably not find directly this filter, but a generic filter mechanism would really help. Does anyone know about such a filter??
-
You can do this generically using a ShaderEffect item:
http://qt-project.org/doc/qt-5.0/qtquick/qml-qtquick2-shadereffect.htmlAnd these are the ready made effects that mostly seem to cover your use case:
http://doc-snapshot.qt-project.org/5.0/qtgraphicaleffects/graphicaleffects.htmlNote in both cases this only works on Qt 5.0 and Qt Quick 2.0