EasyBMP example

Introduction

What is EasyBMP?

EasyBMP is a simple, cross-platform, open source (LGPL) C++ library designed for easily reading, writing, and modifying Windows bitmap (BMP) image files. In this example I am referring to version 0.70.

Description

Py++ has been used to create Python bindings for EasyBMP library. Before proceeding with this example, I should say, that I did not work with EasyBMP at all. I have seen it’s announcement on www.freshmeat.org site and decided to test Py++ with “real world” project. It took me 30 minutes, to create full working python version of this library. These examples consist few files and directories:

  1. environment.py - contains different environment settings
  2. generate_code.py - contains source code needed to generate Boost.Python bindings for EasyBMP library.
  3. sconstruct - build configuration file
  4. generated - directory that contains all generated code and only it
  5. unittests - directory that contains grey scale example from tutorials. C++

I run grey scale example on

Py++ logo

and this is what I have got:

Py++ logo