Skip to content
Snippets Groups Projects
Commit f3e2c827 authored by Almohamed Alsadou Fatima's avatar Almohamed Alsadou Fatima
Browse files

fonctin affiche_image

parent 1e829b93
No related branches found
No related tags found
No related merge requests found
imagef=Image.open('images/images/galets.png')
def affiche_image(image:str,fichier:str)->Image:
"""
convertir un fichier de px en image
Précondition :
Exemple(s) :
$$$
"""
liste=lecture_fichier(fichier)
for (x,y) in (250,250):
for i in range (0,int(liste),3):
imagef.putpixel((x,y),(liste[i],liste[i+1],liste[i+2]))
imagef.show()
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment