Getting RGB value for each pixel (RhinoScript)

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.

This looks like a great tool, thanks.