×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    May 2009
    Posts
    18

    Masking bitmaps programmatically

    Hi I have a bitmap that I draw and I want to change the color of a certaib part according to an event, I was wondering how easy would it be to apply bit manipulation operations on the CFbsBitmap to colour the wanted area instead of just reloading variant of this bitmap image?

    Thanks

  2. #2
    Regular Contributor
    Join Date
    Apr 2004
    Posts
    96

    Re: Masking bitmaps programmatically

    Easy.
    Use
    iBitmap->LockHeap(EFalse);
    TUint8* source = (TUint8*)iBitmap->DataAddress();
    //do something
    iBitmap->UnlockHeap(EFalse);

Similar Threads

  1. Adding bitmaps to the mifdef file
    By emeoh254 in forum Symbian
    Replies: 1
    Last Post: 2007-03-02, 19:43
  2. ERROR: RCMake failed: (Bitmaps): bmconv.exe failed with code 5
    By Dexterp37 in forum Symbian Tools & SDKs
    Replies: 5
    Last Post: 2005-09-07, 08:53
  3. display masked AND scaled bitmaps
    By michael.schrenk in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2005-01-13, 14:53
  4. Bitmaps array
    By dj2five in forum Symbian
    Replies: 0
    Last Post: 2004-01-28, 14:12
  5. masking bmp
    By popeye_luck in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2002-07-07, 14:08

Posting Permissions

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