首 页 | 新 闻 | Symbian | Android| Windows Mobile | J2ME | 下载中心 | 游戏策划招聘与求职 | 购书指南 | 视频教程
您现在的位置: 开发视界 >> Symbian英文资料 >> Graphics >> 正文
The MBM file format
作者:佚名    文章来源:不详    更新时间:2006-5-7 11:14:08

OffsetFieldNameValueComment
0000Epoc Id3700 0010 KDirectFileStoreLayoutUidValue
0004Mbm Id4200 0010KMultiBitmapFileImageUid
0008Constant0000 0000UID3, which is not needed in this case
000CChecksum3964 3947Checksum of the 3 UID’s; Constant for all MBM’s
0010TrailerOffsetxxxx xxxxOffset of Trailer in the file

  Bitmap Header and Pixels Data repeats for each bitmap within the MBM:
 
Bitmap Header

OffsetFieldNameValueComment
Header offsetLengthxxxx xxxxIncludes these bytes and pixels data
Header+0004Header length2800 0000Always 0x28
Header+0008X-Sizexxxx xxxxWidth of image in pixels
Header+000CY-Sizexxxx xxxxHeight of image in pixels
Header+0010Twips-Xxxxx xxxxWidth of image in twips, i.e. 1/1440 inch.
These can be zero if X-Size and Y-Size are provided
Header+0014Twips-Yxxxx xxxxHeight of image in twips
Header+0018Bits Per Pixelxx00 00000x08 for a 256 colors bitmap
Header+001CImageIsColorxx00 00000x00:No,
0x01:Yes,
Header+0020PaletteSizexxxx xxxx 
Header+0024Compressionxx00 00000x00:No,
0x01:8BitRLE,
0x02:12BitRLE,
0x03:16BitRLE,
0x04:24BitRLE

Pixels data
  Not RLE compressed lines are rounded to 8 byte boundery
  RLE (??? UNCOMPLETE)


Trailer

OffsetFieldNameValueComment
Trailer+0000Number Of Bitmapsxxxx xxxxNumber of pictures in the mbm file
Trailer+0004Header Offset for first bitmap1400 0000Always 0x0014
Trailer+0008Header Offset for 2nd bitmapxxxx xxxxIf present...
............


The content of this article comes from the two following pages:
  Frodo’s Homepage
  Rudy Knig’s Homepage
相关文章:
ImageConversion Panic codes
Adicionando bitmaps a sua aplica o (Parte I): Criando um arquivo MBM
Adding bitmaps to your application (Part I): Creating a MBM file
ImageConversion Panic codes
 

站点地图 | 加入收藏 | 联系站长 | 广告服务 |
QQ:280529124  Tel:0592-8271361 辽ICP备05021703号