Original Post
🔒 Locked
getpixel
Advertisement
it depends , if u want to check a color on DirectX's surface
you have to Lock the surface and then to read each pixel.
it looks like that: (Depends that the texture is 16 bit)
but if u want to read a pixel from a win32api bitmap u can loop over the width and height of the bitmap and use GetPixel();
Hopes its helps.
Edited by - xeno on November 24, 2001 7:06:49 AM
Edited by - xeno on November 24, 2001 7:08:03 AM
you have to Lock the surface and then to read each pixel.
it looks like that: (Depends that the texture is 16 bit)
|
but if u want to read a pixel from a win32api bitmap u can loop over the width and height of the bitmap and use GetPixel();
Hopes its helps.
Edited by - xeno on November 24, 2001 7:06:49 AM
Edited by - xeno on November 24, 2001 7:08:03 AM
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement