BitmapPlusPlus Ruby¶
Ruby bindings for BitmapPlusPlus, a simple, fast, and lightweight C++ library for creating and manipulating 24-bit BMP images.
Features¶
- Create and manipulate 24-bit BMP images
- Drawing primitives: lines, rectangles, triangles, circles
- Fill operations for shapes
- Pixel-level access and manipulation
- Image transformations: flip (horizontal/vertical), rotate (90 degrees)
- Load and save BMP files
- 32 predefined colors
- Iterator support for pixel enumeration
About This Project¶
This gem serves as both a useful library and a practical example of using Rice to create Ruby bindings for C++ libraries.
Rice is a C++ header-only library that makes it easy to create Ruby extensions. See the About Rice page for details on the Rice features demonstrated in this project.
License¶
This gem is available under the BSD-2-Clause License.
Acknowledgments¶
- BitmapPlusPlus - The original C++ library by Bader Ouaich
- Rice - C++ to Ruby binding library