www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/12/14/20:42:02

From: Tom St Denis <stdenis AT compmore DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Loading multiple bitmaps in allegro?
Date: Fri, 15 Dec 2000 01:23:05 GMT
Organization: Deja.com
Lines: 20
Message-ID: <91brpk$qh2$1@nnrp1.deja.com>
References: <3a39477a DOT 22177941 AT news DOT virgin DOT net>
NNTP-Posting-Host: 206.47.244.30
X-Article-Creation-Date: Fri Dec 15 01:23:05 2000 GMT
X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)
X-Http-Proxy: HTTP/1.1 choco[0A000001] (Traffic-Server/3.5.7 [uScMs f p eN:t cCMi p s ]), 1.1 x51.deja.com:80 (Squid/1.1.22) for client 206.47.244.30
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 <3a39477a DOT 22177941 AT news DOT virgin DOT net>,
  jamesb_420 AT hotmail DOT com (JB) wrote:
> I am trying to load multiple bitmaps using allegro, but i can't get
> them all to load in the correct color because the pallete is only set
> for one.
> What can i do?

Turn your desk 90 degrees?

Honestly just create a "total color usage" (i.e a 64x64x64 array of
longs) and select the 256 most used colors.  Then dither your images
(i.e closest mean deviation for the RGB triplets) to fit the same pal.

If you're smart in the future you would use the same palette :-)

Tom


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

- Raw text -


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