Categories: How To | Symbian C++ | UI
This page was last modified 15:34, 18 October 2007.
Creation of MBM file
From Forum Nokia Wiki
Creation of MBM file
1. Convert images to bmp and save them as .mbm using function CFbsbitmap::saveL() 2. Get this MBM filepaths into some buffer and pass them to TDesC* aSources[], 3. For TInt32 aSourceIds[] you can use ids starting from 0. 4. Call this storel() function ,mbm is ready to use now...
Alternate method
This method applies if you already have Bmp files and/or their masks. In this case the MBM files can be created using the mmp file.
Without mask file
START BITMAP S60Test.mbm HEADER TARGETPATH \system\apps\step6 SOURCEPATH ..\bitmaps SOURCE c12 tlo.bmp END
With mask file
START BITMAP Myownmbm.mbm HEADER TARGETPATH \system\apps\Jhalak SOURCEPATH ..\bitmaps SOURCE c12 check.bmp SOURCE c12 check_mask.bmp SOURCE c12 uncheck.bmp SOURCE c12 uncheck_mask.bmp END
This creates a mbg file that has to be included wherever the images need to be used. The mbg is actually a text file which contains an enum with the image indexes.
e.g.
/* This file has been generated, DO NOT MODIFY. */ enum TMbmS60test { EMbmS60testTlo };
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| SVG issue in S60 3rd | iulian_moldovan | General Symbian C++ | 33 | 2007-01-01 07:25 |
| File Creation time in NOKIA Series 40 | nk_user | Mobile Java General | 2 | 2007-11-02 11:27 |
| MBM in Carbide....CRASH!!!! | abolfoooud | Symbian Tools & SDKs | 3 | 2006-06-30 21:25 |
| .mbg file | paper_currybowl | Symbian User Interface | 1 | 2004-06-30 08:36 |
| getting black and white images from mbm!! | Shaddy_ | Carbide.c++ and CodeWarrior Tools | 3 | 2007-02-22 11:00 |
