Ok, I figured out why getImageData won’t work. It’s not a method of the Canvas, but of its context.
I’m not sure whether I read the Doc wrong (http://qt-project.org/doc/qt-5.0/qtquick/qml-qtquick2-canvas.html#getImageData-method ) or if its maybe really not quite clear.
Anyways, I still didn’t manage to get an Image item out of the Canvas. This does not seem to be the right way.
Does someone know how to do this?
↧