Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libabmp

A lightweight C library for reading and writing BMP files, implemented from scratch without external dependencies.

Features

  • Supports only 24-bit BMP formats
  • Pure C implementation (no external libraries)
  • Read/Write from memory or disk

Build Instructions

All Platforms

cmake -B build
cmake --build build

Note: 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.

Example Usage

cd example
cmake -B build
cmake --build build
./build/example

The example generates output.bmp using sample images from samples/.

Project Structure

  • include/: Public headers (abitmap.h, abmp.h)
  • src/: Library implementation
  • example/: Demonstrates library usage
  • samples/: Input/output sample images

License

Distributed under the MIT License. See LICENSE for details.

About

My own library for BMP files made from scratch

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages