Only partially transparent pictures

You have anti alias on the base image. SetColorKey changes one colour only. If you zoom up on the image you will see the blue and black are merging colours so are not the value 0, 0xFF, 0xFF. Clip the aa stuff off with an image editing program.

The best way to handle this is to avoid .jpg. Use something like
.png, which has an alpha channel. That way, you can use the
antialiasing instead of removing it by hand.

Jonny DOn Wed, Dec 2, 2009 at 4:51 AM, nobodyreally wrote:

You have anti alias on the base image. SetColorKey changes one colour only.
If you zoom up on the image you will see the blue and black are merging
colours so are not the value 0, 0xFF, 0xFF. Clip the aa stuff off with an
image editing program.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Thanks for the replies.
I managed to solve the problem by removing the anti-aliasing.
btw, Jonny D, I really appreciate your tutorials/articles :slight_smile: