delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/06/25/23:45:21

From: Radical NetSurfer <radsmail AT juno DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Please Help:Allegro/BMP's
Date: Sun, 25 Jun 2000 23:37:22 -0400
Message-ID: <vgjdlssd2vr6kdj7cjt7qgrkassq0ansku@4ax.com>
X-Newsreader: Forte Agent 1.8/32.548
X-No-Archive: yes
MIME-Version: 1.0
NNTP-Posting-Host: 216.202.134.209
X-Original-NNTP-Posting-Host: 216.202.134.209
X-Trace: 25 Jun 2000 23:39:51 -0400, 216.202.134.209
Lines: 44
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

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.

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?

int get_image(n) { ... };
Should load/create an image and then allow us to
use a global pointer to reference it through-out the
rest of the application....

get_image(1);
...
get_image(4);
ERROR: OLD, ORIGINAL Bitmap values from get_image(1)
are STILL IN EFFECT !!  :(
if I destroy_bitmap(global_bitmap);
  how can I declare it again, AND STILL have the Global
  reference through out my program?


I want a SINGLE bitmap to be able to allow its attributes
(hieght/width, etc) to be changed, on the fly....

What can I do ?

Thanks!

//the Radical NetSurfer Kind of Guy//

Email responces are appreciate, especially with Sample Code.
radsmail AT juno DOT com

http://members.tripod.com/~RadSurfer/


- Raw text -


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