×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Nokia Developer Champion
    Join Date
    Dec 2008
    Posts
    2,355

    How to change color of the image after capturing

    Hi,
    I am trying to change the color of the image after its being captured.


    Please suggest me.

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: How to change color of the image after capturing

    I though we already had this discussion in: http://discussion.forum.nokia.com/fo...d.php?t=193142

    So what additional have you tried, and what are the outcomes ?

  3. #3
    Nokia Developer Champion
    Join Date
    Dec 2008
    Posts
    2,355

    Re: How to change color of the image after capturing

    Quote Originally Posted by symbianyucca View Post
    I though we already had this discussion in: http://discussion.forum.nokia.com/fo...d.php?t=193142

    So what additional have you tried, and what are the outcomes ?
    You can see what I tried in the last thread but those didn't help me much. If you have any more suggestion please come up with those.
    Can I use this class CCameraImageProcessing
    Last edited by somnathbanik; 2010-02-15 at 07:52. Reason: added

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: How to change color of the image after capturing

    I have never used it so if you think it might help, then try out and see what the result is. anyway, you could also try out what I said in the previous thread, I did make a working 2D barcode reader myself some 3 years ago, and the key was to make a logic that determines which pixel color of the image can be determined to be black and which can not.

  5. #5
    Super Contributor
    Join Date
    Jul 2008
    Posts
    2,020

    Re: How to change color of the image after capturing

    Quote Originally Posted by somnathbanik View Post
    Hi,
    I am trying to change the color of the image after its being captured.


    Please suggest me.
    Process the bitmap?

    I guess its as easy as that. Pixel data is RGB - 8bit red, 8bit green and 8bit blue.
    The lines above are the best I have to offer.If anyone of you is of more advanced knowledge, I ask for your patience and understanding! - unknown arab poet
    http://www.tamoggemon.com - Symbian blog - Windows Phone blog
    My other blogs:
    webOS blog iPhone blog BlackBerry blog Samsung bada blog Android blog

  6. #6
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: How to change color of the image after capturing

    Quote Originally Posted by tamhanna View Post
    Process the bitmap?

    I guess its as easy as that. Pixel data is RGB - 8bit red, 8bit green and 8bit blue.
    Wow you are an expert, and that's usefull information... anyway did you check the other thread ?

  7. #7
    Super Contributor
    Join Date
    Jul 2008
    Posts
    2,020

    Re: How to change color of the image after capturing

    Hello,
    yep - I did. And transforming the green part to black is easy (we did that as a school assignment looong time ago).

    Just strip off the Red and blue parts like this:
    r.val=g.val
    b.val=g.val

    And you end up with a grey image from black to white with the "green intensities" green being white and black staying black. If you now really really want to go for the green, then you invert - then green becomes black and vice versa.
    The lines above are the best I have to offer.If anyone of you is of more advanced knowledge, I ask for your patience and understanding! - unknown arab poet
    http://www.tamoggemon.com - Symbian blog - Windows Phone blog
    My other blogs:
    webOS blog iPhone blog BlackBerry blog Samsung bada blog Android blog

Similar Threads

  1. Change the image source for image label
    By nitroxxx123 in forum Symbian
    Replies: 3
    Last Post: 2009-04-05, 18:56
  2. Capturing image from secondary camera problem
    By michaelnewyork in forum Symbian
    Replies: 7
    Last Post: 2008-09-08, 08:09
  3. Branding - Dynamically change Nokia theme's background image
    By najibmok in forum Mobile Java General
    Replies: 3
    Last Post: 2007-11-19, 19:32
  4. how to change the backGround of an image
    By mshouab in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2006-07-11, 17:29
  5. How to change the image size in MMS
    By kenwc in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2006-07-06, 10:52

Posting Permissions

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