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 値を取得したいと考えています。できれば、qt や gtk のような完全な GUI ツールキットをロードする必要はありません。スクリーンショットを撮ることはできますが、コストのかかる操作であり、これをリアルタイムで実行したいので、毎秒複数のスクリーンショットを撮る必要があります。Windows ではwindll.gdi32.GetPixel(dc,x,y). Mac に相当するものはありますか?
windll.gdi32.GetPixel(dc,x,y)