A converter to/from the bitmap graphics format being developed for the Commander X16
Find a file
2023-11-25 16:52:25 -08:00
.github/workflows Fix missing job dependency in Linux workflow 2023-11-17 14:20:54 -08:00
.vscode Prefer significant_start = 16, improve test, add debug option 2023-11-18 12:55:26 -08:00
lzsa@15ee2dfe11 Update to rev5. Implement (de)compression 2023-11-21 19:15:18 -08:00
.gitignore Initial commit. 2023-11-17 12:30:24 -08:00
.gitmodules Update to rev5. Implement (de)compression 2023-11-21 19:15:18 -08:00
bitmapx16.cpp Update to rev5a 2023-11-25 16:52:25 -08:00
bitmapx16.h Update to rev5. Implement (de)compression 2023-11-21 19:15:18 -08:00
LICENSE Initial commit. 2023-11-17 12:30:24 -08:00
main.cpp Update to rev5. Implement (de)compression 2023-11-21 19:15:18 -08:00
meson.build Update to rev5. Implement (de)compression 2023-11-21 19:15:18 -08:00
PACK.png Initial commit. 2023-11-17 12:30:24 -08:00
palette.cpp Prefer significant_start = 16, improve test, add debug option 2023-11-18 12:55:26 -08:00
palette.h Prefer significant_start = 16, improve test, add debug option 2023-11-18 12:55:26 -08:00
README.md Update README.md 2023-11-20 12:23:25 -08:00
TEST.png Initial commit. 2023-11-17 12:30:24 -08:00
test.sh Update to rev5. Implement (de)compression 2023-11-21 19:15:18 -08:00

B16Converter

A converter to/from the B16/BMX bitmap format being developed for the Commander X16

Building

This program requires Magick++ (which may come with ImageMagick)

Steps:

  1. Clone the repo. For example: git clone https://github.com/catmeow72/b16converter.git b16converter
  2. cd into the repo directory. For example: cd b16converter
  3. Run meson setup builddir
  4. Run meson compile -C builddir
  5. The binary is ./builddir/b16converter(.exe) where (.exe) is .exe if on Windows, and nothing on other operating systems.

Usage

Run the binary with the -in option specifying the input file and the -out option specifying the desired output file.

Use -reverse to convert B16 to a PC graphics format

Check the flags with -help

Testing

Use the test.sh script from an environment with Bash available to automatically convert PACK.png and TEST.png to B16 at various resolutions and bitdepths, with and without dithering. It also converts back to PNG from the B16 files to test that functionality.

Once you have .b16 files, you can test it with my B16 viewer inside the X16 emulator.