File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2621,7 +2621,7 @@ from PIL import Image
26212621< tuple / int > = < Image> .getpixel((x, y)) # Returns a pixel.
26222622< Image> .putpixel((x, y), < tuple / int > ) # Writes a pixel to image.
26232623< ImagingCore> = < Image> .getdata() # Returns a sequence of pixels.
2624- < Image> .putdata(< list / tuple / ImagingCore> ) # Writes a sequence of pixels.
2624+ < Image> .putdata(< list / ImagingCore> ) # Writes a sequence of pixels.
26252625< Image> .paste(< Image> , (x, y)) # Writes an image to image.
26262626```
26272627
Original file line number Diff line number Diff line change 22342234< pre > < code class ="python language-python hljs "> <tuple/int> = <Image>.getpixel((x, y)) < span class ="hljs-comment "> # Returns a pixel.</ span >
22352235<Image>.putpixel((x, y), <tuple/int>) < span class ="hljs-comment "> # Writes a pixel to image.</ span >
22362236<ImagingCore> = <Image>.getdata() < span class ="hljs-comment "> # Returns a sequence of pixels.</ span >
2237- <Image>.putdata(<list/tuple/ ImagingCore>) < span class ="hljs-comment "> # Writes a sequence of pixels.</ span >
2237+ <Image>.putdata(<list/ImagingCore>) < span class ="hljs-comment "> # Writes a sequence of pixels.</ span >
22382238<Image>.paste(<Image>, (x, y)) < span class ="hljs-comment "> # Writes an image to image.</ span >
22392239</ code > </ pre >
22402240< div > < h3 id ="modes-1 "> Modes</ h3 > < ul >
You can’t perform that action at this time.
0 commit comments