<br>hi All,<br><br> Thank you for your tips and I want to add a point that I want to get BMP file form N800 camera,You know that we can get jpeg file through Gstreamer got from N800 Camera, what about BMP file?<br>
<br><br><div class="gmail_quote">2009/2/23 Simon Pickering <span dir="ltr"><<a href="mailto:S.G.Pickering@bath.ac.uk">S.G.Pickering@bath.ac.uk</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c"><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
hi All,<br>
I know that Jpeg image can be created with Gstreamer , while how to<br>
create a BMP format image by c or python?<br>
Any help would be appreciated, thanks in advance!<br>
</blockquote>
<br></div></div>
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).<br>
<br>
E.g. format of the file: <a href="http://en.wikipedia.org/wiki/Windows_bitmap" target="_blank">http://en.wikipedia.org/wiki/Windows_bitmap</a><br>
<br>
and here's an implementation that you could copy and change: <a href="http://cpansearch.perl.org/src/DHUNT/PDL-Planet-0.05/libimage/bmp.c" target="_blank">http://cpansearch.perl.org/src/DHUNT/PDL-Planet-0.05/libimage/bmp.c</a><br>
<br>
All you need is some data and stdio.h<br>
<br>
Cheers,<br><font color="#888888">
<br>
<br>
Simon<br>
<br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>BRS! <br>Thanks!<br>