Mail Archives: djgpp/1998/01/02/18:46:59
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! ***
- Raw text -