|
|
@ -2189,7 +2189,7 @@ right = [[<span class="hljs-number">0.1</span>, <span class="hljs-number">0.6</s |
|
|
|
<Image>.save(<span class="hljs-string">'<path>'</span>) |
|
|
|
<Image>.show() |
|
|
|
</code></pre> |
|
|
|
<pre><code class="python language-python hljs"><tuple/int> = img.getpixel((x, y)) <span class="hljs-comment"># Returns a pixel.</span> |
|
|
|
<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>) <span class="hljs-comment"># Writes a sequence of pixels.</span> |
|
|
|