How to create ..mbm file
Login to reply to this topic.
mar, 2008-09-30 19:27
Joined: 2007-08-29
Forum posts: 297

Hi All,

I want to create .mbm file to display on main screen of my application. Please help me guide me Puzzled


Thanks & Regards
Ram

Symbian OS 9.1,S60 3rd edition MR,and Carbide.C++


mer, 2008-10-01 05:49
Joined: 2006-04-19
Forum posts: 197

From SDK::

Create the .mbm File
1) Create the bitmaps to be used in the application. This can be done using your favorite graphical software, for example, Microsoft ® Paint or Jasc ® Paint Shop Pro. Save them in a suitable location in your code library.

If you are going to use more than one image it is good practice to store them in an images library. The resolution for icons used in the view context bar is 18x18 pixels.

2) Create the .mbm file. Symbian OS uses a special multi-bitmap format for its bitmaps. It contains one or more bitmaps that are compiled into a .mbm file, which in turn is used by the application.

The easiest way to create an .mbm file is to specify it in your .mmp file

The .mbm icon files are built by adding start bitmap statements in the .mmp file, for example:

START BITMAP Stars.mbm
TARGETPATH \Resource\Apps
SOURCE c24 Star1.bmp Star2.bmp Starmask.bmp
END
For information about the code above see the link above. Observe that it is best to give your .mbm file the same name as your application. If it is given another name you will have to specify the full file path when using it from your code. Otherwise it is sufficient to use *. This is mentioned below.

Check here in SDK

UIQ 3.1 SDK » UIQ Developer Library » UIQ How-To Guides » Controls » View Context » Handle icons in the View Context

You can search into SDK and this forum itself. It'll be helpful for you.

Thanks&Regards
Isha


"To the question of your life , you are the only Answer. To the problems of your life,you are the only Solution".

mer, 2008-10-01 06:17
Joined: 2008-10-01
Forum posts: 19

Ya that is the gud method to create mbm file.....

But there is one another simple and best method :

Instead of Hard-coding in the .mmp file ,there is another option sources.....In the source option u have,in the right hand side there is Resources....just goto the Bitmaps and click on the Add option ...........A new window will open:
.mmp->Sources->Resources->Bitmaps->add->new window->Target path->header path->add bitmaps->ok
In that new window......Give the Target Path where u have to store the .mbm file,and another option is the Header Path where u store the .mbg file......After that move to the next part(to add bitmaps,u can either add bitmaps from Project and Add from file systems).....If ur bitmaps is present in the projects.....then click on the ADD from Project option and add all ur bitmaps.......
atlast click ok and ur .mbm and .mbg file will be created.......

.mmp->Sources->Resources->Bitmaps->add->new window->Target path->header path->add bitmaps->ok[i]

Thxx and Regards,
S.B.

mer, 2008-10-01 14:06
Joined: 2007-08-29
Forum posts: 297

Hi Isha,

Thank you very much for your reply. Really you explain all details about creating .mbm file. I feel very happy to get reply in such details.

Hi Origional,
Thanks a lot to give me alternate solution. Thanks for giving reply step-by-step.


Thanks & Regards
Ram

Symbian OS 9.1,S60 3rd edition MR,and Carbide.C++

ven, 2008-10-03 13:34
Joined: 2007-08-29
Forum posts: 297

Hi Isha,

To create .mbm file I have following line of code in .mmp file. Its create .mbm file.When I open .mbm file to see image then there is no image.
Why there is no image in satguide.mbm file.

Can I use any other image format for splash screen ?.

START BITMAP satguide.mbm
HEADER
TARGETPATH \resource\apps
SOURCEPATH ..\gfx
SOURCE c12 satguide_findme.bmp
END


Thanks & Regards
Ram

Symbian OS 9.1,S60 3rd edition MR,and Carbide.C++

ven, 2008-10-03 14:10
Joined: 2007-08-29
Forum posts: 297

Hi I use following path to see my .mbm file. I can see image in .mbm format.
C:\Symbian\9.1\S60_3rd_MR_4\S60Tools\mbmviewer


Thanks & Regards
Ram

Symbian OS 9.1,S60 3rd edition MR,and Carbide.C++

lun, 2008-10-06 10:52
Joined: 2006-04-19
Forum posts: 197


Hi,

Try to use the mask.

Thamks&Regards
Isha


"To the question of your life , you are the only Answer. To the problems of your life,you are the only Solution".

lun, 2008-10-06 11:00
Joined: 2007-08-29
Forum posts: 297

Hi Isha,

now I can see .mbm file image.

Can I use without mask or it is necessary to use mask.


Thanks & Regards
Ram

Symbian OS 9.1,S60 3rd edition MR,and Carbide.C++

lun, 2008-10-06 11:28
Joined: 2006-04-19
Forum posts: 197

Good your's problem has resolved now.BTW where was the problem?

you can draw the image with out using MASK also Mask is simply use to select which parts of a bitmap are drawn.If a pixel in the mask is black, then the corresponding pixel is copied from the bitmap; if a pixel in the mask is white, then the corresponding pixel is not copied from the bitmap, which has the effect of displaying the background at that pixel location. mask is not copied to the screen, but is simply used to decide which pixels should get copied to the screen.

Thanks&Regards
Isha


"To the question of your life , you are the only Answer. To the problems of your life,you are the only Solution".

lun, 2008-10-06 11:46
Joined: 2007-08-29
Forum posts: 297

Thank you very much Isha for your reply.

Now my problem is solved.


Thanks & Regards
Ram

Symbian OS 9.1,S60 3rd edition MR,and Carbide.C++


copyright 2003-2009 NewLC SARL