From: Charles Terry Newsgroups: comp.os.msdos.djgpp Subject: Re: Help: Flic Palette in Allegro Date: Wed, 01 Apr 1998 06:52:24 -0800 Organization: All USENET -- http://www.Supernews.com Lines: 42 Message-ID: <352254A8.6F78@plinet.com> References: <3 DOT 0 DOT 5 DOT 32 DOT 19980330175544 DOT 007e1320 AT pop DOT iquest DOT net> <35203D66 DOT 991B872C AT sprynet DOT com> <3521161E DOT 3131 AT plinet DOT com> <35217510 DOT B6BF3C54 AT sprynet DOT com> NNTP-Posting-Host: 6540 AT 207 DOT 174 DOT 3 DOT 153 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Ishpeck wrote: > > Yes, I could set the entire palette to the palette > of the flic... but, I don't want to. > > Is there a way to change the palette of a bitmap > in the memory? > > Say, for instance, I wanted to print two bitmaps > simultaneously and each of them had a different > palette... could I change the one, or the other > so that the palette of one matched the other? > > Could I convert the palette of one bitmap before > I printed it, so that it could match the palette > of the other one? > > Or am I just hoping for things that cannot be? > > Charles Terry wrote: > > > > No the palette is set in the graphics driver > > so if you change it the whole display changes > > but you seem to be indicating that the rest of the > > screen at this point is unused except for the textout-? > > > > I think you can use the grabber utility to get the > > pallete from your flic and package both the flic and > > pallete in a data file and load both at runtime > > > > Charles Terry I'm sure what you want exists, all of the commercial graphics packages have utilities for converting palletes. I don't know about freeware, although I bet Shawn has some routines for that. If you have to bo it youself you could by setting up a routine to compare the two paletes and assigning a closest match to each color then rewriting the memory bitmap. In the paticular case your talking about though- wouldn't converting the bitmap slow down the flic? Charles