delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/22/06:02:20

From: aho450s AT nic DOT smsu DOT edu (Tony O'Bryan)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Quick question re: Allegro BITMAPs
Date: Thu, 22 May 1997 08:55:50 GMT
Organization: Southwest Missouri State University
Lines: 10
Message-ID: <3384096c.2629755@ursa.smsu.edu>
References: <33832989 DOT 12988254 AT news DOT cis DOT yale DOT edu> <338405ac DOT 1670120 AT ursa DOT smsu DOT edu>
NNTP-Posting-Host: forseti.i60.smsu.edu
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

On Thu, 22 May 1997 08:44:33 GMT, aho450s AT nic DOT smsu DOT edu (Tony O'Bryan) wrote:

>You are correct that "void *dat" is the key.  Assuming  unsigned char *Buffer:
>
>Buffer = (unsigned char *)MyBitmap -> dat;

I should also point out that the bitmap structure contains pointers to the
beginning of each bitmap line.  You could use the Y coordinate as an index into
BITMAP -> line[Y], and use the X coordinate as the offset from the start of that
line.

- Raw text -


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