From: Einar <"eincar"@[EINAR]vip.cybercity.dk> Newsgroups: comp.os.msdos.djgpp Subject: Loading a BMP picture??? Date: Thu, 23 Jul 1998 09:32:21 +0200 Organization: CyberCity Internet Lines: 44 Message-ID: <6p6opo$mjr$1@news.cybercity.dk> NNTP-Posting-Host: 195.8.142.176 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk I'm new in the field of programming, but hopefully it will only be a difficult stage that all of us must go trough ;-) I have downloaded and installed the Allegro library, to use it in a little test game I'm trying to make. My problem is that I have drawn a picture with 256 colours called BACKGR.BMP, that I want to use as a background, but I cant seem to figure out how to get the programme to show the picture. I also have the colour palette that I used to draw the picture YATZY.PAL I believe that I should use the following line. BITMAP *load_bmp(char *filename, RGB *pal); Could anyone please tell me how to fill out that line of code, so that the picture will be shown. The following lines of code are my feeble attempt at getting the computer to show the picture. #include BITMAP *background; PALETTE colour; Int main(); { allegro_init(); install_keyboard(); set_gfx_mode(GFX_VESA1,640,480,0,0); Here I need to load the YATZY.PAL and the BACKGR.BMP???? readkey(); return 0; } I've downloaded some of the tutorials on the Allegro homepage, but I haven't found any reference to loading this kind of BMP picture. Thanks in advance. Einar. ------------------------------------------------------- Remove [EINAR] from e-mail address when replying