By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,189 Members | 910 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,189 IT Pros & Developers. It's quick & easy.

Read and Display BMP Files in ANSI-C

P: 1
Hi,

is there an easy way to read and display BMP Files ?
I am writing in ANSI-C with gcc under Linux and have BMP-Files on harddisk, that have to copied into a framebuffer to be displayed on the embedded device-screen.

Thanks for your help

Bertram
Mar 19 '07 #1
Share this Question
Share on Google+
2 Replies


sicarie
Expert Mod 2.5K+
P: 4,677
Hi,

is there an easy way to read and display BMP Files ?
I am writing in ANSI-C with gcc under Linux and have BMP-Files on harddisk, that have to copied into a framebuffer to be displayed on the embedded device-screen.

Thanks for your help

Bertram
Are you looking in C or C++? There is this thread if you are interested in C++...
Mar 20 '07 #2

saranjegan
P: 51
Hi,

is there an easy way to read and display BMP Files ?
I am writing in ANSI-C with gcc under Linux and have BMP-Files on harddisk, that have to copied into a framebuffer to be displayed on the embedded device-screen.

Thanks for your help

Bertram
hi dude: displaying a bmp file is not so complicated just fallow some procedures

to display a BMP you must read its header first with totally 54 bytes and save it in a struct or array..then read its RGB value

if can use C++ then you can use the above link which supported me long days back

i have done the same bmp display and interpolation for a embedded device but in windows flavour
Mar 20 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.