[maemo-developers] How to create a BMP image using c or python

From: Simon Pickering S.G.Pickering at bath.ac.uk
Date: Mon Feb 23 11:56:01 EET 2009
> hi All,
>     I know that  Jpeg  image  can be created  with Gstreamer , while how to
> create a  BMP format image by c or python?
> Any help would be appreciated, thanks in advance!

Google? A bitmap is just a header followed by the data (which can just  
be raw data if you don't want to implement RLE code).

E.g. format of the file: http://en.wikipedia.org/wiki/Windows_bitmap

and here's an implementation that you could copy and change:  
http://cpansearch.perl.org/src/DHUNT/PDL-Planet-0.05/libimage/bmp.c

All you need is some data and stdio.h

Cheers,


Simon



More information about the maemo-developers mailing list