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.
我正在尝试编写一个应用程序,告诉用户在相机预览中放置的任何颜色。预览的一小部分被标记,并且当该部分指向一种颜色时。该应用程序会实时告诉用户是什么颜色。我已经编写了相机预览类,但现在我只需要知道如何分析相机看到的内容。任何帮助将不胜感激。
只需获取当时的位图图像并使用 bitmap.getpixel(int x,int y) 来获取颜色。