Implements Direct3D 9 surface_get_pixel functions.