qRgb ( i,i,i ) will always be gray!
qRgb ( i,i,i ) will always be gray!
And of course the colour map needs to be created _before_ conversion and passed as an argument to the conversion. How else would Qt know to what index to map each RGB pixel using a closest match principle.
So, you need to get a ready-made colour map data from somewhere...
Okay.....you`re right.....but how to do it otherwise.....do i have to build a loop for each Rgb value......means instead of i,i,i, to use i for red, j for green and k for blue??? Is it right to use QRgb? Did I have to use a Vector or does QT have another possibility???
And why do I get the black and white Stripes when I use: image = QImage(600, 453, QImage::Format_Indexed8???
Would be very nice if someone can help a little bit more. I`m not a Guru but it`ll be nice to get one in a few years :-p ....greetz Nadja
Bookmarks