Getting color of Content


i want to create a application, which runs in the background and resolve the color of some pixel of the running content.

Is it possible to resolve the color of content ? If it is possible, i would be happy about some links.

How can I run TV Apps in the background?

Thanks for help!