delorie.com/archives/browse.cgi | search |
From: | "Pavlos" <trash24379 AT usa DOT net> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: About BITMAP structure ( ALLEGRO ) |
Date: | Tue, 13 Jul 1999 16:54:01 +0300 |
Organization: | An OTEnet S.A. customer |
Lines: | 23 |
Message-ID: | <7mfgci$9bp$1@newssrv.otenet.gr> |
References: | <0JNh3.11$O4 DOT 1132 AT wagner DOT videotron DOT net> <oLAi3.396$M4 DOT 20676 AT wagner DOT videotron DOT net> |
NNTP-Posting-Host: | dram-a12.otenet.gr |
X-Trace: | newssrv.otenet.gr 931874002 9593 195.167.113.235 (13 Jul 1999 13:53:22 GMT) |
X-Complaints-To: | abuse AT otenet DOT gr |
NNTP-Posting-Date: | 13 Jul 1999 13:53:22 GMT |
X-Newsreader: | Microsoft Outlook Express 4.72.3110.1 |
X-Mimeole: | Produced By Microsoft MimeOLE V4.72.3110.3 |
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 ... > >I know about save_bitmap, but this is now want I want to do. > >I want to save it to a file by dumping memory > I think you can do this like this: Create your bitmap (BITMAP *img1; img1=create_bitmap(xxxxxx); Open a file and write the bitmap's data (img1->dat) Close the file Now, assuming you have another bitmap (img2) that has the same width, height, depth etc, you can read the file onto img2's dat. You could also store the width&height&depth of the bitmap onto that file, so the loader can read it. Open allegro.h to find the BITMAP structure and see what it looks like, it's members etc. I haven't tested this, I don't know if I'm missing something. Pavlos
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |