delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/10/19:08:22

Sender: nate AT cartsys DOT com
Message-ID: <3787CDB5.F6ED8E38@cartsys.com>
Date: Sat, 10 Jul 1999 15:48:21 -0700
From: Nate Eldredge <nate AT cartsys DOT com>
X-Mailer: Mozilla 4.08 [en] (X11; I; Linux 2.2.10 i586)
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: About BITMAP structure ( ALLEGRO )
References: <0JNh3.11$O4 DOT 1132 AT wagner DOT videotron DOT net>
Reply-To: djgpp AT delorie DOT com

OmniMeta wrote:
> 
> How can I write a BITMAP structure to a file, then read the file to recreate
> the same BITMAP ?
> 
> BITMAP *img1,*img2;

See `save_bitmap' and `load_bitmap' under "Loading" in the Allegro
manual.  As a special bonus, they even save in standard formats (BMP,
PCX, TGA etc).
-- 

Nate Eldredge
nate AT cartsys DOT com

- Raw text -


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