Also, code to invert an image has been posted before: http://lists.libsdl.org/pipermail/sdl-libsdl.org/2002-September/030534.html -Eric