Page 1 of 1

getpixel

PostPosted: Jul 22, 2002 @ 2:40pm
by bomme
i tried to implement a simple getpixel support in the surface class. the idea was to transform the x,y point so that m_Buffer->GetPixels(x,y) returns the correct pixel value. but i cant get it to work. is this approach possible to implement a getpixel method in the surface class??

i think its overkill to lock the surface just to get only one pixel.

PostPosted: Jul 22, 2002 @ 6:22pm
by Kzinti