×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Feb 2011
    Posts
    338

    TBitmapUtil::SetPixel Not working in Symbian belle

    I was using TBitmapUtil in Symian 3rd and 5th edition and SetPixel was working fine foe EGray256, but when i tried it with Nokia Belle model 700 it is not showing any color. the bitmap is coming just as white. Anybody can help me ?

  2. #2
    Registered User
    Join Date
    Feb 2011
    Posts
    338

    TBitmapUtil::SetPixel Not working in Symbian belle

    I was using TBitmapUtil in Symian 3rd and 5th edition and SetPixel was working fine for EGray256, but when i tried it with Nokia Belle model 700 it is not showing any color. the bitmap is coming just as white. Anybody can help me ?

  3. #3
    Registered User
    Join Date
    Feb 2011
    Posts
    338

    Re: TBitmapUtil::SetPixel Not working in Symbian belle

    I am setting only two pixel values SetPixel(0xff) and Set(0) for white and black respectively (as it is int EGray256 mode)

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,750

    Re: TBitmapUtil can not modify a bmp

    Check if there is an alpha channel. Default display mode of Symbian^3 uses it as I know, perhaps TBitmapUtil emulates it.

    EDIT: moved your other post and my reply here. Based on your example I would suggest trying 0xFF000000 for black and 0xFFFFFFFF for white.
    Last edited by wizard_hu_; 2012-07-05 at 11:40.

  5. #5
    Registered User
    Join Date
    Feb 2011
    Posts
    338

    Re: TBitmapUtil can not modify a bmp

    I used 0xFF000000 for black and 0xFFFFFFFF for white but i see no change. The bitmap is showing white.

  6. #6
    Registered User
    Join Date
    Feb 2011
    Posts
    338

    Re: TBitmapUtil can not modify a bmp

    But GetPixel is working as usual but facing problem in SetPixel. In TBitmapUtil there are a few functions, so i can not decide what to do now

  7. #7
    Registered User
    Join Date
    Feb 2011
    Posts
    338

    Re: TBitmapUtil can not modify a bmp

    I have checked that for white pixel I am getting TInt32 value 255 and for black simply 0 using GetPixel. So SetPixel should do the same. But unfortunately it is not. Is there any issue with gc.BitBlt() ? does TBitmapUtil have any effect on gc.BitBlt() ?

  8. #8
    Registered User
    Join Date
    Feb 2011
    Posts
    338

    Re: TBitmapUtil can not modify a bmp

    what I have found just now is that there is something problemactive with the display mode. I am taking an image an converting it to different display mode. For EGray2 it is okya, for EGray256 it is showing full white (though it has black pixels) . So this is not the issue related to TBitmapUtil. The display mode is making problem to show a bitmap correctly. What should i do ?

    Edit: EGray16 is also fine. Only EGray256 is not showing anything.
    Last edited by Md. Kayesh; 2012-07-05 at 13:45.

Similar Threads

  1. Could not use SetPixel() of TBitmapUtil properly
    By Md. Kayesh in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2012-06-27, 12:39
  2. Replies: 8
    Last Post: 2012-03-19, 10:01
  3. Replies: 2
    Last Post: 2012-01-17, 18:59
  4. Replies: 2
    Last Post: 2012-01-12, 13:33

Posting Permissions

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