Get image pixel value for texture Mapping

Hello everyone,I want to get the pixel value of any point.I use C++ and would like to know if there are any APIs that can achieve my goals or provide me some guidance?

one

Or how do I get pixel values from UV coordinates just use Rhino APIs