PDA

View Full Version : getting color from a pixel on canvas



teeshift
9th January 2007, 04:52
I did not find (maybe it is there) a method to get a pixel's color from the canvas.
There is a setColorAt but not getColorAt ...

Is there a way to do so? or if I have a image posted on canvas, there is another
way to do it? other than getting the pixel from the image object itself.

Thanks.

Tee Shift

wysota
9th January 2007, 05:12
Access the image and then use QImage::getPixel().