Help on BMP2G9B

Par Metalion

Paragon (1629)

Portrait de Metalion

15-05-2022, 13:39

Hi everyone,

I'm trying to use BMP2G9B, but I'm unable to obtain the help file.
On the Team Bomba website, they say that the tool has a built-in help.

I've tried "bmp2g9b -help", "bmp2g9b -h"," bmp2g9b help", "bmp2g9b -?", "bmp2g9b ?" ...
None of them are working.

I'm trying to convert a 24-bit BMP image to P1 mode.

Thanks.

!login ou Inscrivez-vous pour poster

Par Arjan

Paladin (787)

Portrait de Arjan

15-05-2022, 15:10

You have to run the program without specifying any arguments.

Par Metalion

Paragon (1629)

Portrait de Metalion

15-05-2022, 17:09

OK, thanks. I've got this as help file:

Usage :
  - bmp2g9b [d][path]filename.ext [-option]
    - Input File can be bmp and g9b
 -b    = Disable bitbuster compression
 -pX,Y = Enable bitmap pattern mode
       - X = Pattern X size
       - Y = Pattern Y size
 -rL,T,W,H = Roi mode
       - L = Left
       - T = Top
       - W = Width
       - H = Height
 -d    = Dither image
 -f    = Enable 8 bit fixed pallette conversion for 24bit BMP
 -y    = Enable YUV conversion for 24bit BMP
 -J    = Enable YJK conversion for 24bit BMP

Now, how do I convert a 24-bit bmp to P1 mode (1 palette of 16 colors among 32768) ?
The '-f' option does only a MSX2 screen 5 conversion, with MSX2 palette.

Par Metalion

Paragon (1629)

Portrait de Metalion

16-05-2022, 20:57

Metalion wrote:

Now, how do I convert a 24-bit bmp to P1 mode (1 palette of 16 colors among 32768) ?

No one ?

Par msd

Paragon (1532)

Portrait de msd

19-05-2022, 08:38

There is no conversion from 24bit to 4bit in bmp2g9b. I would convert image to 16 colors on PC. There you can find the best tool to handle the reduced number of colors. Save that in BMP to convert to a g9b file

Par Metalion

Paragon (1629)

Portrait de Metalion

19-05-2022, 09:24

Thanks msd.

In the meantime, I started to use the excellent image conversion tool CMSXimg done by aoineko. He kindly accepted to add a v9990 palette option to its SC5 type conversion. The output format is raw binary, but it suits me.

Par Manel46

Paladin (674)

Portrait de Manel46

08-08-2022, 12:28

Hi msd,
I already commented on this. When we use the -f function to convert a bmp to g9b, 8 bit fixed palette (screen 8), the Dither option, -d, does not work. It's a shame.
Bmp2msx solves this correctly.