From: Alex Lowe Newsgroups: comp.os.msdos.djgpp Subject: Re: newbie bitmap question Date: Thu, 31 Dec 1998 18:12:23 -0800 Organization: TempleCRC Lines: 32 Message-ID: <368C2F07.502C5F06@immediate.net> References: <368C4211 DOT 368399EE AT infoave DOT net> NNTP-Posting-Host: p111.stk1.2xtreme.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.5 [en] (Win98; U) X-Accept-Language: en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com To plot the bitmap you need to load it... Example: BITMAP *mytest=load_bitmap("mytest.bmp",0); then blit it to the screen with the blit() function... look it up in the allegro docs for syntax... Example: blit(mytest,screen,0,0,0,0,BitmapWidth,BitmapHeight); For tiling just use some 'for' loops... Example: for(x=0;x > Hi all. Im new to C as well as DJGPP and need a bit of help with using > bitmap files. I'm writing small example progams to help me out as I go > along and was wondering, if I have a file called mytest.bmp.. how can I > plot the bmp on the screen (anywhere will do), and make another program > to tile it on the screen (both using Allegro). Any help will be greatly > appreciated. :)