Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User Evaldas12's Avatar
    Join Date
    Mar 2012
    Posts
    10
    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 mvuori's Avatar
    Join Date
    Jul 2008
    Posts
    90
    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 Devnull's Avatar
    Join Date
    Sep 2011
    Posts
    381
    Let us guide you.
    /0

Similar Threads

  1. AIF Icon colors
    By kayem in forum Symbian User Interface
    Replies: 4
    Last Post: 2007-12-12, 21:47
  2. Reducing Colors of an Png
    By Rozik in forum Mobile Web Site Development
    Replies: 2
    Last Post: 2007-08-17, 11:19
  3. colors
    By nicholasgaye in forum Symbian User Interface
    Replies: 1
    Last Post: 2005-04-07, 11:19
  4. problem with colors
    By ooooooo in forum Mobile Java General
    Replies: 0
    Last Post: 2004-07-07, 12:39
  5. 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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved