×

Discussion Board

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

    What is the job of Reset() in CFbsBitmap ?

    hi,
    Suppose I have a pointer to a CFbsBitmap.
    CFbsBitmap *aBitmap;

    It is already allocated and has many pixels inside. Now I am doing two things
    1) delele aBitmap
    2) again create aBitmap using new

    My question is, can I do these things done using one single call to aBitmap->Reset() ?

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,671

    Re: What is the job of Reset() in CFbsBitmap ?

    FBS is Font and Bitmap Server, so these things are about client-server interaction.
    CFbsBitmap::Reset means that you keep the CFbsBitmap object (it is not delete), but the bitmap on the server side gets released. So you are free to initialize it again with Create/Load/Duplicate.
    So the answer is "yes" for the concept of the question, you can replace delete+new with a single Reset call.

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

    Re: What is the job of Reset() in CFbsBitmap ?

    Thank you so much for making it clear.

Similar Threads

  1. SVG to CFbsBitmap
    By janaja in forum Symbian Media (Closed)
    Replies: 11
    Last Post: 2009-05-19, 12:05
  2. CFbsBitmap
    By victorh81 in forum Symbian
    Replies: 8
    Last Post: 2005-01-17, 19:04
  3. About CFbsBitmap
    By Paticlicue in forum Symbian
    Replies: 1
    Last Post: 2004-04-18, 19:48
  4. Can i Soft Reset or Hard Reset on 7650?
    By nick_atl2000 in forum Symbian
    Replies: 2
    Last Post: 2002-11-16, 23:57

Posting Permissions

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