I have a ShaderEffect in QtQuick 2.0 and I'm trying to pass a Canvas (which I'm drawing on) to it as it's ShaderEffectSource.
Does anyone know how to do this?
The ShaderEffect is willing to take an Image item as its ShaderEffectSource, but I can't figure out how to construct an Image from the Canvas. But maybe that's not the best idea anyways?
Thanks in advance!
In the meantime someone in the Qt Forum had an idea: http://qt-project.org/forums/viewthread/28416/
Works pretty good for what I am doing.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With