[Solved]Access the pixels of the Image(qml2)
How could I access the pixels of the Image?
Is it possible to manipulate them directly from c++ site?
The results should reflect on the qml site
using shaderEffects could do some image processing tasks
but when I need to do more sophisticated tasks, it is not
enough to handle it.
This is what custom image providers are for.
In qml you simply specify a custom URL to access the image and you create it entirely on the C++ side.
Thanks Jens, the document in QtCreator are fine(5.1RC), but the link you
give me, the example is broken.
Try the docs for 5.1 rc perhaps. In any case there is a separate thread on the forum for this:
I tried it, not really the class I need, but it is good to know there are a tool
like that exist. It is not suit for my need because the image have to repaint
when specific properties change(interval, minimum slope etc), so I design
a custom image by QQuickPaintedItem.
The next experiment is try to use the gpu and cpu together to render the
image and show them on the qml scene, lot of things have to learn.However,
process the image is fun, it is even more interesting to play it with Qt.