From: SPAMGUARDriker AT pipcom DOT com (Matt Riker) Newsgroups: comp.os.msdos.djgpp Subject: Re: Allegro, Bitmaps, and Palettes Date: Fri, 2 Jan 1998 18:47:18 -0500 Organization: Riker Software Lines: 26 Message-ID: References: <68iaj1$f64 AT bgtnsc03 DOT worldnet DOT att DOT net> Reply-To: SPAMGUARDriker AT pipcom DOT com NNTP-Posting-Host: 207.61.241.233 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk In article <68iaj1$f64 AT bgtnsc03 DOT worldnet DOT att DOT net>, NightWatchman AT Sacrilege DOT com says: > I'm experimenting with reading 256 color bitmaps from disk and > displaying them on the screen using Allegro. The problem is that the > colors come out wrong, which I assume could only be because the palette > is wrong. If this is true, then allegro must not automatically set the > palette to whatever is appropriate for that image, which kind of > surprises me...But anyway... I would greatly appreciate it if someone > could fill me in on how to set the correct palette for a given bitmap > (e.g. how to create a variable of type PALETTE from the bitmap). > > Just to make sure my problem isn't something completely different, I'm > including the source code below. I get the same > result when I use a datafile. Instead of being a whining manual pusher :), I'll tell you how to do it. In Allegro's tool directory, there is a program called Grabber, which is essential when using Allegro. Look at code examples (ex12.c is best) and fool around with Grabber a bit to figure out how to use it. ____________________________ Matt Riker SPAMGUARDriker AT pipcom DOT com *** Remove SPAMGUARD *** *** when replying! ***