How do I get a pixel's color from a surface?
If you know the x and y cords then use GetLockedPixel to return the colour, just make sure to lock/unlock the surface.
eg.
in Psudocode.
,Jay
eg.
Surface.lockArray[x][y]=Surface.GetLockedPixel(x,y);Surface.unlock
in Psudocode.
,Jay
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement