A lightweight C library for reading and writing BMP files, implemented from scratch without external dependencies.
- Supports only 24-bit BMP formats
- Pure C implementation (no external libraries)
- Minimal overhead with direct file I/O
cmake -B build
cmake --build buildNote: On Windows, ensure MinGW is installed and available in PATH. The library does not compile with MSVC (cl.exe) due to C language feature requirements.
cd example
cmake -B build
cmake --build build
./build/exampleThe example generates output.bmp using sample images from samples/.
include/: Public headers (abitmap.h,abmp.h)src/: Library implementation (24+ source files)example/: Demonstrates library usagesamples/: Input/output sample images
Distributed under the MIT License. See LICENSE for details.