To build just run make:
make
To run tests:
run_test
First convert image to supported bmp format (BMP 3.x, ARGB8888). Example conversion using ImageMagick:
convert image.jpg -resize 45x69 -matte -define bmp3:alpha=on bmp3:image.bmp
Then call program with proper arguments:
./bmp_array_converter image.bmp image_array.h
- Support more variations of bits per pixel (only ARGB8888 for now)
- Add conversion from any format to bmp already inside program.