- Online Community Forums » Programming Questions » How - Let user load bmp at runtime

This thread is locked; no one can reply to it. rss feed Print
How - Let user load bmp at runtime
Member #3,671
July 2003

I'm using C (DevC++) and Allegro.
I would like to make it possible for the user to take a bmp from any source other than the program and load it into the game as a background image.
How can I do this ?

Member #3,035
December 2002

1. Get input from user.
2. Validate that the input represents a vaild path to a valid bmp.
3. Call load_bitmap() using the user input.
4. Replace the current background with the new one.
5. Profit!


Member #3,671
July 2003

Yes, well it's quite obvious that you would want input from the user since it's the user that's supposed to load the picture.
My Q was, how do I do this.

Member #2,559
July 2002

You can use:file_select_ex

Tomasu: Every time you read this: hugging!

Ryan Patterson - <>

Go to: