Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

Python Imaging Library/Image Tiling

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

from PIL import Image img = Image.new( 'RGB', (255,255), "black") # create a new black image pixels = img.load() # create the pixel map for i in range(img.size[0]): # for every pixel: for j in range(img.size[1]): pixels[i,j] = (i, j, 100) # set the colour accordingly img.show()