lundi 30 mars 2015

Annoying Python Image.pixel method issue

so I'm just trying to learn how to use the Image module and for some reason PyCharm won't recognize the Image.Pixel method, even after I've imported the Image module. An easy question, I'm sure, but What am I doing wrong here? (I've installed PIL)


from PIL import Image


p = Image.Pixel(45, 76, 200)


print(p.getRed())


PyCharm tells me 'ImportError: No module named 'Pixel', but from what I've read here (http://ift.tt/1G9QP5q), I don't really see why this isn't working...


thanks in advance guys.


Aucun commentaire:

Enregistrer un commentaire