Help needed guys, I have camera code/app but I need to add to it a feature witch will change the colors which ar show (e.g. swaps green with blue or otherwise) I need an example code or something , please help ! ;]]
Help needed guys, I have camera code/app but I need to add to it a feature witch will change the colors which ar show (e.g. swaps green with blue or otherwise) I need an example code or something , please help ! ;]]
Here's something:
Qt Mobility camera functions do not help here. You need to load the image into a QImage and then go through all pixels. Get their colour values into a QColor variable (QRgb pixel = image.pixel(x, y)and replace the pixel value swapping the color channels, for example image.setPixel(x, y, QRgb(pixel.qRed(), pixel.qBlue(), pixel.qGreen())).