RE: [AD] Question about 256 colors modes

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> I guess Photoshop is popular enough to find that this
> issue may arise to any other developer. May be a
> "quick and dirty" solution would be to have a test
> program that "reorders" the palette so it gets the
> transparent color wanted (if it's not placed at index
> 0).

That's what I don't get. You most probably are going to
use more than one image on the screen, so (if your screen
is also 8 bit, and you don't expand on blit) they will
have to have the same palette if you want them to appear
correctly. Therefore, you don't want to have a randomly
generated palette at your gfx program's whim. If images
are authored in 8 bit, then you already know your palette
(the artist built it, or can easily change it). If they
are authored in truecolor, then the quantization will
generate a more or less matching palette, but this has
no reason to be the same for different images, so you'll
have to add some step to make palettes the same for all
images. So I don't see how you end up with a generated
palette. Unless you force all subsequent images to be
quantized to whatever palette is generated by the first
image, or something similar.

If you see what I mean, I'm thinking I'm not very clear
here, but I'm not sure how to put it more clearly. In
essence, you need to do that palette transform in the
first place anyway, and you don't seem to be doing it,
which is puzzling me.


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/