getpixel

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.
i think its overkill to lock the surface just to get only one pixel.