I am developing an Mac-Desktop application in which I 开发者_StackOverflow社区want to obtain background color of all the on-screen windows.
The function 'CGWindowListCopyWindowInfo' returns array of all on-screen windows with its size, alpha value etc.
Is there any method to obtain background color of all the on-screen windows?
Thanks in advance.
Regards, Deepa
I don't think so. See the Quartz Window Service Reference where CGWindowListCopyWindowInfo is listed. 
In any case, there is no concept of a "window background color" in OS X. There's no configurable background color which is then automatically put behind various objects on a window.
Instead, use CGWindowListCreateImage to create an image of the window, and get the color somehow representative of that window, according to your own criterion.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论