delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/05/21/05:55:55

From: "Brendan Eyre" <Brendan DOT Eyre AT europe DOT simoco DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro - Datafile problem
Date: 21 May 1999 09:18:56 GMT
Organization: Simoco
Lines: 29
Message-ID: <01bea36a$6099b6e0$ec9496c1@ukder-eyreb>
References: <7hvclo$voh$1 AT news6 DOT svr DOT pol DOT co DOT uk>
NNTP-Posting-Host: 193.150.148.236
X-Newsreader: Microsoft Internet News 4.70.1162
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

The BITMAP struct has two members called w and h - widht and height.. so...


DATAFILE *df;
BITMAP *bm;

bm = (BITMAP *) df[offset].dat;	 /* get a pointer to the bitmap for 				   
convenience */

int width = bm->w;
int height = bm->h;


Hope this helps.
Brendan.

Steve <steve AT maltbysoft DOT freeserve DOT co DOT uk> wrote in article
<7hvclo$voh$1 AT news6 DOT svr DOT pol DOT co DOT uk>...
> Hi,
> 
> Does anyone know how to find the width and height of a bitmap in a
Datafile?
> 
> Thanks,
> 
> Steve.
> 
> 
> 

- Raw text -


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