Getting RGB value for each pixel (RhinoScript)

Hello,
I imported a jpg file with AddPictureFrame. I want to extract the color value (RGB) for each pixel. I was able to get the location of each pixel, but what function will give me the color value? Thanks,

Hi @bashir.khoda,

in case you’re using RhinoScript (rvb) you might look into the old RhPicture PlugIn. It provides a method “GetPixel” to get the color from x,y coordinates.
_
c.

This looks like a great tool, thanks.