Help on BMP2G9B

By Metalion

Paragon (1565)

Аватар пользователя 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

By Arjan

Paladin (775)

Аватар пользователя Arjan

15-05-2022, 15:10

You have to run the program without specifying any arguments.

By Metalion

Paragon (1565)

Аватар пользователя 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.

By Metalion

Paragon (1565)

Аватар пользователя 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 ?

By msd

Paragon (1486)

Аватар пользователя 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

By Metalion

Paragon (1565)

Аватар пользователя 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.

By Manel46

Hero (651)

Аватар пользователя 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.