简体   繁体   English

如何在python中读取像素颜色(不是从图像中读取)

[英]How to read a pixel color in python (not from an Image)

I'm trying to get a value of RGB from a pixel in python using pygame 我正在尝试使用pygame从python中的像素获取RGB值

not getting the RGB from pixels in an image 无法从图像中的像素获取RGB

使用pygame.Surface.get_at((coordinateX, coordinateY))

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM