From: Vic Newsgroups: comp.os.msdos.djgpp Subject: Re: Allegro: Displaying 640x480 PCX file Date: Sat, 07 Jun 1997 10:30:38 -0400 Organization: Communications Accesibles Montreal Lines: 18 Message-ID: <3399708E.67A4@cam.org> References: <3398be25 DOT 7398629 AT news DOT primenet DOT com> <5nagnc$s38 AT news DOT interlog DOT com> <339bea8e DOT 18769574 AT news DOT primenet DOT com> Reply-To: tudor AT cam DOT org NNTP-Posting-Host: dynppp-235.hip.cam.org 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 Mike McLean wrote: > Thanks again for the help, but i have another problem. I don't know > how to pass the name of a file to be viewed in besides at the command > line. I'd like to be able to set it up so I can load them from with > in the program. Sorry if this is a simple question. That is very easy (pseudo allegro code follows) BITMAP *mybitmap; PALETTE pal; mybitmap=load_bitmap("foopcx.pcx",pal); <-- put your bmp name here set_palette(pal); draw_sprite(screen,mybitmap,0,0); > Mike. -- http://www.cam.org/~tudor "I INSERTED THE DISK INTO THE COMPUTER, AND TURNED IT ON. LET THERE BE DOS,I SAID! AND THERE WAS DOS." -- Bill Gates, 1977