Commit 1243a65f authored by Robin Lotton's avatar Robin Lotton

correction negatif

parent 2f6f3983
......@@ -69,15 +69,17 @@ def infoImage():
Menu()
def negatifCouleur():
clearscreen()
(hauteur, largeur)= image.size
imagenega = Image.New(RGB,(hauteur, largeur))
for ligne in range (hauteur):
for colonne in range (largeur):
Rouge, Vert, Bleu= image.getpixel((ligne,colonne))
(Rouge,Vert,Bleu) = (255-Rouge,255-Vert,255-Bleu)
image.putpixel((ligne,colonne), (Rouge, Vert, Bleu))
image.show()
imagenega.putpixel((ligne,colonne), (Rouge, Vert, Bleu))
imagenega.show()
clearscreen()
Menu()
menu()
def monochrome():
img2= image.convert('L')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment