Multiple Colorkeys

Hello,
I was just wondering if it is possible (and how or where I can find out how) to
use multiple color keys for one image. For example, if I wanted pure blue and
pure red to be the colorkeys, or maybe just many colors close to blue (like if I
was using it to change something close to blue to the background if I was using
an image taken by a camera that didn’t set pure blue to pure blue).

I hope I have explained what I want correctly.
Thanks in advance!

Hello,
I was just wondering if it is possible (and how or where I can find out how) to
use multiple color keys for one image. For example, if I wanted pure blue and
pure red to be the colorkeys, or maybe just many colors close to blue (like if I
was using it to change something close to blue to the background if I was using
an image taken by a camera that didn’t set pure blue to pure blue).

Sure, it is possible, you just write code to scan over the entire image
looking for the range of colors you want to treat as a color key and set
them to a single color that you then use as your SDL color key when you
blit the image. But, the key here is that you either have to find code
or write code to do it. SDL does not have any functions that do what you
want.

	Bob PendletonOn Tue, 2004-12-14 at 02:10, Craig St.Jean wrote:

I hope I have explained what I want correctly.
Thanks in advance!


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

±-------------------------------------+