[SDL] How Can I get the color of a pixel?

L-28C kixdemp at gmail.com
Mon Nov 26 23:05:31 PST 2007


There's GetPixel() and PutPixel() functions in the SDL docs:

http://www.libsdl.org/cgi/docwiki.cgi/Pixel_20Access?action=highlight&value=getpixel

Enjoy! =D

cocobear wrote:
> I want to know the color of pixel(x,y), how can I get it?
> 
> 
> 
> 
> Regards!
> 
> /*
>  *Welcome to cocobear's home!
>  *http://cocobear.cn
>  */



More information about the SDL mailing list