Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikibooksThe Free Textbook Project
Search

Python Imaging Library/Image Tiling

From Wikibooks, open books for an open world
<Python Imaging Library
fromPILimportImageimg=Image.new('RGB',(255,255),"black")# create a new black imagepixels=img.load()# create the pixel mapforiinrange(img.size[0]):# for every pixel:forjinrange(img.size[1]):pixels[i,j]=(i,j,100)# set the colour accordinglyimg.show()
Retrieved from "https://en.wikibooks.org/w/index.php?title=Python_Imaging_Library/Image_Tiling&oldid=3116702"
Category:

[8]ページ先頭

©2009-2025 Movatter.jp