method to find the RGB value of a pixel.
One method that might work (but likely too slowly to be useful) is to store the value returned by GetBackgroundPixelColor in a list for each pixel.
Total the values in the list then average that total.
The averaged value might be the average MITAI color value.
You could then convert the result to an RGB value.
A faster method might be to use the WebViewer component and javascript code to determine the average RGB value and return that value as a list to MITAI proper using the WebViewer WebViewString property.
Google: javascript average RGB value