Mail Archives: djgpp/2000/06/26/18:15:06
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 <radsmail AT juno DOT com>
> 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
- Raw text -