Converting .bmp file to .mbm file WITH Platette

Login to reply to this topic.
Wed, 2003-07-23 02:40
Joined: 2003-07-17
Forum posts: 28
Huh Hi,

Can anyone tell me how to convert windows .bmp file into a .mbm file programatically. I saw Eric's web page at newlc.com. Though it has the structure for an mbm file, it doesnt tell much about the structure of the palette such as:  its location, and what the palette size  mean. Is the Palette size total size of the palette in bytes OR is it number of color entries in the palette? Also , is every color entry in the palette made of 3 bytes?

I would greatly appreciate if someone can throw more light in to all this. Also there is now document on what kind of RLE8 is used to compress the bitmap.

My advance thanks to anyone who would help

murali

Wed, 2003-07-23 13:10
Joined: 2003-04-03
Forum posts: 31
Converting .bmp file to .mbm file WITH Platette
Hi!

To my knowledge (at least 8 bit) MBM files do not use a palette. 8 bit MBMs use the Symbian default palette (at least that's what I had to find out for Series 60).

zeep

zeep

Thu, 2003-07-24 17:49
Joined: 2003-07-17
Forum posts: 28
Converting .bmp file to .mbm file WITH Platette
Hi Zeep,

Thanks, That is some useful lead. I guess i have to experiment with the system palette by feeding in a sequence of color values to get complete mapping using CFsBitmap class.

Thanks

Smiley murali
Fri, 2003-08-29 03:56
Joined: 2003-07-02
Forum posts: 130
Converting .bmp file to .mbm file WITH Platette
As i have seen in the help of the bmconv tool, with the option /pfilename you can set a personal palette.

Quote
/pfilename gives the filename of a palette file containing 256 hex
 numbers (0x00BBGGRR) specifying the palette for 8bpp colour bitmaps.
 (Omission results in the use of a default palette.)
  • Login to reply to this topic.