Archive

Posts Tagged ‘bmp’

Tool for convert the picture file to C source code.

June 26th, 2009 admin 2 comments

Today the story is about the tool that help you translate the image file into the C source
code.This tool have an advantage in that when you want to show some picture to display on the LCD of
your embedded development platform, you must translate the picture file that you can normally see on
your computer to be the array of color code that will be represented the whole pixels of that picture file (
of course , the array of color code , you can’t see it).It is “BMP2C”.You can get this
program from SourceForge.net by follow this link http://sourceforge.net/projects/bmp2c/

This program is an opensource so you can modify it to suitable for your project, or continue to
develop it to be better than the current version.This program can be used with various LCD driver and can
generate the color data that represent the color of the pixel range up to 32 bits, but it don’t provide the lcd
driver program for you , so if you want to use it you have to write the code to control the LCD driver first.

The disadvantage of this program is that it is a command line program (no gui) however it also can
run on MS windows XP (For Windows Vista  -> I don’t know) .You can easily run it by follow this step.

1. Click at the menu name “Run…” on the Start Menu of Windows XP.
2. Type the word “cmd” on the white blank and then press OK , this will open the command-line
program of Windows XP.
3. Go to the directory that you store the execute file of this program ( name “bmp2c.exe” ) and then run it.
4. follow the instruction ,  afterthis please follow the help document of this program by yourself
(the good document is already come with this program).

please note that this program can be used with the picture file extension “.bmp” only.

Thank you.

Jitkasem.

Incoming search terms for the article:

Get Adobe Flash playerPlugin by wpburn.com wordpress themes