cvs.gedasymbols.org/archives/browse.cgi | search |
From: | "David Mitchell" <dmitchell AT inet DOT net DOT nz> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: About BITMAP structure ( ALLEGRO ) |
Date: | Mon, 12 Jul 1999 15:44:39 +1200 |
Organization: | Inet Ltd, Christchurch, New Zealand |
Lines: | 28 |
Message-ID: | <931752091.119062@kyle.inet.net.nz> |
References: | <0JNh3.11$O4 DOT 1132 AT wagner DOT videotron DOT net> |
NNTP-Posting-Host: | kyle.inet.net.nz |
X-Trace: | titan.xtra.co.nz 931751259 5121709 202.50.171.4 (12 Jul 1999 03:47:39 GMT) |
X-Complaints-To: | abuse AT xtra DOT co DOT nz |
NNTP-Posting-Date: | 12 Jul 1999 03:47:39 GMT |
X-Newsreader: | Microsoft Outlook Express 4.72.3110.5 |
X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.3110.3 |
Cache-Post-Path: | kyle.inet.net.nz!unknown AT p205-tnt1 DOT inet DOT net DOT nz |
X-Cache: | nntpcache 2.3.3 (see http://www.nntpcache.org/) |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
OmniMeta wrote in message <0JNh3.11$O4 DOT 1132 AT wagner DOT videotron DOT net>... >How can I write a BITMAP structure to a file, then read the file to recreate >the same BITMAP ? > > >BITMAP *img1,*img2; > >// I need to write img1 to a file > >// Then I need to read the file and fill img2 > Why do you need to write it to a file? If you just want the two bitmaps to be the same I think you can just go *img2 = *img1; But if you just want it as a file, you could use the Allegro call int save_bitmap(char *filename, BITMAP *bmp, RGB *pal); in the Loading Image Files section of Allegro Docs David
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |