×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    May 2007
    Location
    Poland
    Posts
    606

    How to get descriptor from CFbsBitmap

    Hello,
    i have got CFbsBitmap object and i would like to get descriptor from it.
    1)How can i do it? ( I would not like to save it to file and read file)

    2) What is the best way to compare 2 CFbsBitmap to check if there are any differences ?

    thanks in advance

    Nuker85

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

    Re: How to get descriptor from CFbsBitmap

    1. you could get scanlines and save them in a bigger buffer, also you could use the option to save the image in a buffer (check the file saving APIs, it should have the option)

    2. Scanlines would propably be the fastest way

  3. #3
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,567

    Re: How to get descriptor from CFbsBitmap

    You can also use CFbsBitmap:ataAddress (do not forget locking and unlocking the heap).
    Then use a pointer descriptor:
    Code:
    TSize size(iBitmap->SizeInPixels());
    TPtrC8 bitmapdata(static_cast<TUint8*>(iBitmap->DataAddress()),size.iHeight*CFbsBitmap::ScanLineLength(size.iWidth,iBitmap->DisplayMode());
    You can also ExternalizeL the bitmap to a memory-stream, like RBufWriteStream, and get a descriptor via CBufBase::Ptr. In this case make sure that you use a flat buffer (CBufFlat).

  4. #4
    Registered User
    Join Date
    May 2007
    Location
    Poland
    Posts
    606

    Re: How to get descriptor from CFbsBitmap

    Thanks guys for response,
    that seems to be what i ve been asking for so i ll give it a try

    thanks

    Nuker85

Similar Threads

  1. Display problem with CFbsBitmap object
    By steven.weng in forum Symbian Tools & SDKs
    Replies: 4
    Last Post: 2008-08-06, 14:44
  2. array of CFbsBitmap
    By apitoman in forum Symbian User Interface
    Replies: 2
    Last Post: 2007-02-26, 07:25
  3. Replies: 1
    Last Post: 2006-11-15, 07:03
  4. CFbsBitGcBitmap versus CFbsBitmap
    By heuven in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2006-09-13, 12:42
  5. from CFbsBitmap to struct and back
    By miguelbl in forum Symbian Media (Closed)
    Replies: 4
    Last Post: 2006-07-03, 13:20

Posting Permissions

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