www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/25/11:52:43

Message-ID: <F77915E7F086D31197F4009027CC81C903C465@ASL-NT-EXCH2>
From: Shawn Hargreaves <SHargreaves AT acclaimstudios DOT co DOT uk>
To: djgpp AT delorie DOT com
Subject: Re: Allegro and color conversions
Date: Mon, 25 Oct 1999 15:31:35 +0100
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)
Reply-To: djgpp AT delorie DOT com

Sherlock writes:
> If you are using Allegro in 16 or 24 bit color, how do you get the sprite
> functions (designed for 8 bit) to display 8-bit bitmaps at the higher
color
> depths?

The "converting between color formats" section in the manual
explains this in considerable detail. Briefly, you cannot
arbitrarily mix images of different color depths, so almost
certainly the best thing is to convert all your graphics
to the current display format while loading them in. There
are a few very specific functions which are capable of mixing
color depths in some ways, though: the docs have the details.


	Shawn Hargreaves.

- Raw text -


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