delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/01/28/15:36:29

From: Tom St Denis <stdenis AT compmore DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: BITMAP info
Date: Sun, 28 Jan 2001 20:23:41 GMT
Organization: Deja.com
Lines: 28
Message-ID: <951v47$8on$1@nnrp1.deja.com>
References: <3a730d46_3 AT corp DOT newsfeeds DOT com> <94vkii$i3n$1 AT nnrp1 DOT deja DOT com> <3a736592_3 AT corp DOT newsfeeds DOT com> <OE24CKDkb9pPFR6sKBE000007e1 AT hotmail DOT com> <3a7384c5_1 AT corp DOT newsfeeds DOT com> <95035b$t0e$1 AT nnrp1 DOT deja DOT com> <3a744bc1_2 AT corp DOT newsfeeds DOT com>
NNTP-Posting-Host: 24.112.8.23
X-Article-Creation-Date: Sun Jan 28 20:23:41 2001 GMT
X-Http-User-Agent: Mozilla/5.0 (Windows 98; U) Opera 5.01 [en]
X-Http-Proxy: 1.1 x64.deja.com:80 (Squid/1.1.22) for client 24.112.8.23
X-MyDeja-Info: XMYDJUIDtomstdenis
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

In article <3a744bc1_2 AT corp DOT newsfeeds DOT com>,
  "23yrold3yrold" <cbarry AT pangea DOT ca> wrote:
> "Tom St Denis" <stdenis AT compmore DOT net> wrote in message
> news:95035b$t0e$1 AT nnrp1 DOT deja DOT com...
> >
> > You can draw to memory bitmaps (or linear screens) using screen->line[0]
> as a
> > pointer to a series of pixels.
> >
> > or
> >
> > BITMAP *bmp;
> > bmp = create_bitmap(16, 16);
> >
> > *((unsigned char *bmp->line[0])+1) = makecol(0,0,255);
> >
> > Sets the second pixel to red.
>
> I'll try that; thanks.

Allegro.txt explains this a bit better just in case.  I haven't personally
done alot of my own blitting code except to read pixels directly.

Tom


Sent via Deja.com
http://www.deja.com/

- Raw text -


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