delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/25/18:47:32

From: rdebelj AT wt DOT com DOT au (Robert Debeljakovic)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro BITMAP
Date: Fri, 24 Oct 97 22:12:49 GMT
Organization: Evolution Software
Lines: 27
Message-ID: <62r72a$oon$1@kurica.wt.com.au>
References: <62dp2e$72b AT bgtnsc02 DOT worldnet DOT att DOT net>
NNTP-Posting-Host: dialup9.wt.com.au
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

In article <62dp2e$72b AT bgtnsc02 DOT worldnet DOT att DOT net>, JASON MEEHAN <JASONMEEHAN AT compuserve DOT com> 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; 
>
> /*** i know this is wrong but what i'm 
>     trying to do is make it point to the oldbitmap****/
>
>can anyone help me?
>
>Thanks

Jason,
Have you thought about this....
Simply, display your old bitmap on a blank screen, and then use the allegro 
stuff to recapture it in allegro format?

Good Luck.
Rob 
West Oz

- Raw text -


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