Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python create a new png file

from pil import Image

def newImg():
    img = Image.new('RGB', (100, 100))
    img.putpixel((30, 60), (155, 155, 55))
    img.save(r'C:UserslenovoDesktopsqr.png')

    return img

newImg()
 
PREVIOUS NEXT
Tagged: #Python #create #png #file
ADD COMMENT
Topic
Name
6+3 =