python3获取图片像素点的rgba颜色

from PIL import Image
image = Image.open("bg.png")
# (101, 100)表示像素点的坐标
print(image.getpixel((101, 100)))

控制台输出:

(3, 96, 110, 88)

更多推荐

python3获取图片像素点的rgba颜色