Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想获取屏幕上任意像素的 rgb 值。最好不必加载完整的 gui 工具包,如 qt 或 gtk。截屏是可行的,但这是一项昂贵的操作,我想实时运行这个东西,所以我必须每秒截取多个屏幕截图。在 Windows 上我可以做到windll.gdi32.GetPixel(dc,x,y)。任何Mac等价物?
windll.gdi32.GetPixel(dc,x,y)