首页 > Linux操作系统 > Linux操作系统 > 创建.mbm文件(转)
1。编译过程中创建
需要在程序的MMP文件中添加以下内容:
start bitmap target-file
[targetpath target-path ]
[header ]
[sourcepath source-path ]
source color-depth source-bitmap-list
end
例如:
start bitmap sprites.mbm
header
sourcepath ..itmaps
source c12 ship.bmp bullet.bmp alien.bmp
end
二、使用bmconv工具创建
输入如下命令:
bmconv sprites.mbm /c12ship.bmp /c12bullet.bmp /c12alien.bmp
在bmconv命令后使用/u选项,可以从MBM文件中提取BMP文件,得到的BMP文件色深都是24。也可以使用在命令后指定/v选项来显示MBM文件的内容。
在命令行下输入bmconv,查看它支持的所有选项。
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/10294527/viewspace-126355/ ,如需转载,请注明出处,否则将追究法律责任。