From: Vic Newsgroups: comp.os.msdos.djgpp Subject: Re: Allegro BITMAP Date: Sun, 19 Oct 1997 22:23:49 -0400 Organization: Communications Accessibles Montreal, Quebec Canada Lines: 21 Message-ID: <344AC0B5.7CC8@cam.org> References: <62dp2e$72b AT bgtnsc02 DOT worldnet DOT att DOT net> NNTP-Posting-Host: dynppp-138.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 JASON MEEHAN wrote: > > Ok, heres what I'm trying to do. I need to convert a different type of > bitmap to allegros type so that I can use allegros graphic routines. > > unsigned char *oldbitmap; /*this points to graphic data in 8x8tiles*/ > BITMAP *newbitmap; /**** allegro bitmap type ******/ > .... > ...... > newbitmap =create_bitmap(8,8); > > newbitmap.*dat=*oldbitmap; the bitmap structure contains the data as unsigned char line[x][y]; so you say newbitmap->line[0]=oldbitmap; -- --> http://www.cam.org/~tudor <-- Go ahead and build another Messiah We dig another grave...