Answers for "pillow python image putpixel"

0

pillow python image putpixel

# Importing Image from PIL package 
from PIL import Image
      
# creating a image object
image = Image.open(r'C:\Users\System-Pc\Desktop\python.png') 
  
width, height = image.size
  
for x in range(height):
    image.putpixel( (x, x), (0, 0, 0, 255) )
  
image.show()
Posted by: Guest on May-23-2021

Python Answers by Framework

Browse Popular Code Answers by Language