Advertisement

Load bmp

Started by August 17, 2001 02:49 PM
1 comment, last by FingerClick 23 years, 6 months ago
Hi! I''m really new in programming. I have started 2 years ago, but,with Pascal at high school. Now i''m learning C by myself. I think it''s a idiot question, but please, anyone may explain me how can i load a picture.bmp in C to my program and where can i find these beginners articles for games? Thanks for all in advance and sorry for my poor english, i speak another language.
Could that nice person also tell me how I can load my animated GIF into the backround of my program. Thanks

You know your game is in trouble when the lead designer of your racing game drives a mini-van.
You know your game is in trouble when the lead designer of your racing game drives a mini-van. :)
Advertisement
Basically, you need to open the file, read in a BITMAPFILEHEADER struct, read in a BITMAPINFOHEADERSTRUCT, and then the actual data. There should be some tutorials on this out there somewhere, try to do a search on it from somewhere and look up the exact format. Also, this site has a lot of tutorials for beginners and advanced programmers. Look in the Articles and Resources section.

This topic is closed to new replies.

Advertisement