×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    May 2009
    Posts
    4

    How can i load a bitmap from the phone memory?

    I have a fonction which save a bitmap called picture0.bmp in the phone memory.
    I would like load this bitmap, i wrote this:

    _LIT(KFileName,"picture0.bmp");
    TFileName path = PathInfo::PhoneMemoryRootPath(); //Default
    path.Append( PathInfo::ImagesPath() );
    path.Append(KFileName);
    HBufC* iImagePath = HBufC::NewL( path.Length() );
    iImagePath->Des().Copy( path );

    CFbsBitmap* iLoadedBitmap = new (ELeave) CFbsBitmap();
    CleanupStack::PushL(iLoadedBitmap);
    User::LeaveIfError(iLoadedBitmap->Load(*iImagePath));

    I have not errors during the build but it does not work on emulator. It can not load the bitmap.
    Please help

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

    Re: How can i load a bitmap from the phone memory?

    CFbsBitmap::Load is capable of loading .mbm-s, Symbian's own native bitmap format. Everything else should be decoded using CImageDecoder, you should search for it in the SDK Help, the Wiki, and the Discussion Boards. You can also find related examples, visit Docs above, Documentation, Symbian C++, Graphics (or Multimedia?). There should be some example about image conversion (or ICL - Image Conversion Library).

  3. #3
    Super Contributor
    Join Date
    Mar 2004
    Location
    Bangalore,India
    Posts
    2,146

    Re: How can i load a bitmap from the phone memory?

    You could either use the decoder as wiz mentioned to load the bitmap or use the bmconv to convert it into native bitmaps that can be used to load the same at runtime directly with the calls u r making.
    Cheers,
    Mayank

Similar Threads

  1. Regarding BMCONV
    By sanah007 in forum Symbian C++
    Replies: 2
    Last Post: 2009-05-26, 12:47
  2. Nokia 6280 problem with phone memory!
    By Crewis in forum General Development Questions
    Replies: 5
    Last Post: 2006-11-24, 20:57
  3. Anyone with a nokia 3330? Can anyone help me to copy phone memory to the sim?
    By pabmania in forum General Development Questions
    Replies: 1
    Last Post: 2006-10-29, 22:34
  4. Nokia 6600 phone memory / FExplorer
    By victorh81 in forum General Development Questions
    Replies: 2
    Last Post: 2005-02-08, 15:26

Posting Permissions

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