From: Radical NetSurfer Newsgroups: comp.os.msdos.djgpp Subject: Re: Please Help:Allegro/BMP's Date: Mon, 26 Jun 2000 08:59:19 -0400 Message-ID: <6qkels0g31vk934ud9lj7ltba4j9lelbk9@4ax.com> References: <395729c9 DOT 2362749 AT news DOT wins DOT uva DOT nl> X-Newsreader: Forte Agent 1.8/32.548 X-No-Archive: yes MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 216.202.134.158 X-Original-NNTP-Posting-Host: 216.202.134.158 X-Trace: 26 Jun 2000 09:01:47 -0400, 216.202.134.158 Lines: 57 X-Original-NNTP-Posting-Host: 64.31.79.51 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Are you using something different from the rest of us? OR have you designed a routine that does what you described below? Please share it with me if you have such a critter. radsmail AT juno DOT com THANKS! From the 3.9.2 Documentation: File: allegro.inf, Node: release_bitmap, Next: acquire_screen, Prev: acquire_bitmap, Up: Bitmap void release_bitmap(BITMAP *bmp); Releases a bitmap that was previously locked by calling acquire_bitmap(). If the bitmap was locked multiple times, you must release it the same number of times before it will truly be unlocked. See also: *Note acquire_bitmap. *Note acquire_screen. *Note release_screen. On Mon, 26 Jun 2000 10:08:26 GMT, eglebbk AT phys DOT uva DOT nl (Evert Glebbeek) wrote: >Newsgroup: comp.os.msdos.djgpp > From: Radical NetSurfer > On Sun, 25 Jun 2000 23:37:22 -0400 > >>I have a project which wants to place several >>different images into a GLOBALLY decalred >>BITMAP *bitmap variable, >>but each images has its own unigue height/width/etc. >yech. ;-) >> >>How can I possibly use a common, globally declared >>Bitmap to do this? >>I suppose creating an intermediate Bitmap locally in >>a function, THEN somehow copying it to the globally >>declared one... >>the problem is: How the heck do you ADJUST the >>height / width and other attributes to MATCH the >>NEW image? >Well, I'm not sure from your post if you tried this and it failed, but >my suggestion would be to do releas_bitmap(bitmap) and I find no mention of 'releas' but one instance of 'release_' >create_bitmap(bitmap, new_width, new_height). > >hope this helps. > >Evert Glebbeek