×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Aug 2008
    Posts
    95

    Draw and save bitmap file

    Hi all,
    I need to draw a bitmap and save it in a .bmp (or mbm) file.

    In particular, i want to draw a text on a file .mbm, save it and display on the screen.

    How we can draw on a file .bmp (or mbm)?

    Thanks!

  2. #2
    Super Contributor
    Join Date
    Jul 2008
    Location
    Chennai,India
    Posts
    889

    Re: Draw and save bitmap file

    It's easy..

    1. Create a CFbsBitmap, CFbsBitGc, CFbsBitmap Device
    ( Check off-screen bitmap/Double buffering concepts)...

    2. With CFbsBitGc(after associating with a bitmap) You can use
    CFbsBitGC:rawText() function..Check it out..

    3. Once you are done with step 1 and 2
    CFbsBitmap->Save("your .mbm file name")...

    4. If you want in .bmp file use CImageEncoder...


    Check the wiki for all the above..

  3. #3
    Regular Contributor
    Join Date
    Aug 2008
    Posts
    95

    Re: Draw and save bitmap file

    Quote Originally Posted by deepchand86 View Post
    It's easy..

    1. Create a CFbsBitmap, CFbsBitGc, CFbsBitmap Device
    ( Check off-screen bitmap/Double buffering concepts)...

    2. With CFbsBitGc(after associating with a bitmap) You can use
    CFbsBitGC:rawText() function..Check it out..

    3. Once you are done with step 1 and 2
    CFbsBitmap->Save("your .mbm file name")...

    4. If you want in .bmp file use CImageEncoder...


    Check the wiki for all the above..
    Thank you very much ... I'll try your solution.

Similar Threads

  1. Draw and save
    By ozerki in forum Symbian
    Replies: 3
    Last Post: 2008-05-23, 08:04
  2. Draw and save image
    By shyam9 in forum Symbian
    Replies: 10
    Last Post: 2008-04-08, 11:31
  3. Replies: 1
    Last Post: 2005-05-26, 14:22
  4. Replies: 0
    Last Post: 2002-06-10, 12:24
  5. Unable to save document to file?
    By yuva69 in forum Symbian
    Replies: 1
    Last Post: 2002-06-06, 13:30

Posting Permissions

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