Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python PIL

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 #PIL
ADD COMMENT
Topic
Name
4+8 =