How to read a pixel's color on a sprite ?
Posted: Thu Oct 02, 2003 10:21 am
Greetings,
I've been trying to retrieve the color of a pixel on a sprite by using GetPixel_(hdc,x,y) but to no avail. I guess the problem is to get the correct dc for the sprite. This is what i've been doing (wrong, probably) :
Does someone know the correct way to do this ?
Thanks in advance,
Pythagoras
I've been trying to retrieve the color of a pixel on a sprite by using GetPixel_(hdc,x,y) but to no avail. I guess the problem is to get the correct dc for the sprite. This is what i've been doing (wrong, probably) :
Code: Select all
hDC = GetDC_(sprite_id)
color = GetPixel_(hDC,50,30)
Thanks in advance,
Pythagoras