delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/20/14:01:38

From: Vic <tudor AT cam DOT org>
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
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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...

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019