www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/11/03/20:50:32

From: gradha AT iname DOT com
Newsgroups: comp.os.msdos.djgpp
Subject: Re: ANDing bitmaps under allegro
Date: Wed, 3 Nov 1999 12:30:37 +0100
Organization: Telefonica Transmision de Datos
Message-ID: <tc6pv7.n77.ln@pedos.es>
References: <381F80A9 DOT 2DE040EB AT cs DOT iastate DOT edu>
NNTP-Posting-Host: 195.55.157.73
User-Agent: tin/pre-1.4-981002 ("Phobia") (UNIX) (Linux/2.2.10 (i686))
Lines: 16
To: djgpp AT Delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Flenser <flenser AT cs DOT iastate DOT edu> wrote:
> I need to AND two bitmaps together, and assign the result to a new
> bitmap. Does anyone know how to do this?

But what do you mean by ANDing? Do you mean merging to colors at
50% each, taking the bits of one colors and anding them bit to bit,
add the colors, or the bits of the colors?

And then, what color depth are you talking about? Because bit-anding
on 8 bpp is different than on other resolutions, since the "color"
is in fact an index to a palette containing the color...

Grzegorz Adam Hankiewicz - gradha AT iname DOT com
Gogosoftware - http://welcome.to/gogosoftware/

"I gotta be me; I'm too good to be anyone else." - Garfield.

- Raw text -


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