Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Mar 2012

    Qt camera swaping colors

    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 ! ;]]

  2. #2
    Registered User
    Join Date
    Jul 2008

    Re: Qt camera swaping colors

    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())).

  3. #3
    Nokia Developer Expert
    Join Date
    Sep 2011

    Re: Qt camera swaping colors

    Let us guide you.

Similar Threads

  1. AIF Icon colors
    By kayem in forum Symbian User Interface
    Replies: 4
    Last Post: 2007-12-12, 21:47
  2. colors
    By nicholasgaye in forum Symbian User Interface
    Replies: 1
    Last Post: 2005-04-07, 11:19
  3. problem with colors
    By ooooooo in forum Mobile Java General
    Replies: 0
    Last Post: 2004-07-07, 12:39
  4. Colors in code
    By crackcraze in forum Symbian User Interface
    Replies: 1
    Last Post: 2003-02-10, 18:41

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts