|
|
@ -2234,7 +2234,7 @@ right = [[<span class="hljs-number">0.1</span>, <span class="hljs-number">0.6</s |
|
|
|
<pre><code class="python language-python hljs"><tuple/int> = <Image>.getpixel((x, y)) <span class="hljs-comment"># Returns a pixel.</span> |
|
|
|
<Image>.putpixel((x, y), <tuple/int>) <span class="hljs-comment"># Writes a pixel to image.</span> |
|
|
|
<ImagingCore> = <Image>.getdata() <span class="hljs-comment"># Returns a sequence of pixels.</span> |
|
|
|
<Image>.putdata(<list/tuple/ImagingCore>) <span class="hljs-comment"># Writes a sequence of pixels.</span> |
|
|
|
<Image>.putdata(<list/ImagingCore>) <span class="hljs-comment"># Writes a sequence of pixels.</span> |
|
|
|
<Image>.paste(<Image>, (x, y)) <span class="hljs-comment"># Writes an image to image.</span> |
|
|
|
</code></pre> |
|
|
|
<div><h3 id="modes-1">Modes</h3><ul> |
|
|
|