View Full Version : QtQuick2 access image pixel
Talei
22nd April 2013, 20:39
Hello,
I have QML Image element in view.
What I want to do is onPress event I want to read pixel value of the loaded image.
How should I proceed with QtQuick2?
Regards
wysota
22nd April 2013, 23:41
How should I proceed with QtQuick2?
You shouldn't.
Talei
23rd April 2013, 06:47
So in that case, how to interact with pixels from QtQuick2. Lets say I want to get value of the pixel on the image that user click on.
wysota
23rd April 2013, 07:20
So in that case, how to interact with pixels from QtQuick2.
You can't. If you want to work on pixels, fall back to Qt/C++.
stereoMatching
3rd June 2013, 09:02
Maybe you could calculate the position of the x, y of mouse from qml
then use Qt/c++ to load the image and print out the value according to the x, y position
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.