|
|
@ -54,7 +54,7 @@ |
|
|
|
|
|
|
|
<body> |
|
|
|
<header> |
|
|
|
<aside>April 12, 2023</aside> |
|
|
|
<aside>April 13, 2023</aside> |
|
|
|
<a href="https://gto76.github.io" rel="author">Jure Šorn</a> |
|
|
|
</header> |
|
|
|
|
|
|
@ -2263,7 +2263,7 @@ right = [[<span class="hljs-number">0.1</span>, <span class="hljs-number">0.6</ |
|
|
|
</code></pre> |
|
|
|
<pre><code class="python language-python hljs"><int/tuple> = <Image>.getpixel((x, y)) <span class="hljs-comment"># Returns a pixel.</span> |
|
|
|
<Image>.putpixel((x, y), <int/tuple>) <span class="hljs-comment"># Writes a pixel to the image.</span> |
|
|
|
<ImagingCore> = <Image>.getdata() <span class="hljs-comment"># Returns a flattened sequence of pixels.</span> |
|
|
|
<ImagingCore> = <Image>.getdata() <span class="hljs-comment"># Returns a flattened view of the pixels.</span> |
|
|
|
<Image>.putdata(<list/ImagingCore>) <span class="hljs-comment"># Writes a flattened sequence of pixels.</span> |
|
|
|
<Image>.paste(<Image>, (x, y)) <span class="hljs-comment"># Writes passed image to the image.</span> |
|
|
|
</code></pre> |
|
|
@ -2935,7 +2935,7 @@ $ pyinstaller script.py --add-data '<path>:.' <span class="hljs-comment"> |
|
|
|
|
|
|
|
|
|
|
|
<footer> |
|
|
|
<aside>April 12, 2023</aside> |
|
|
|
<aside>April 13, 2023</aside> |
|
|
|
<a href="https://gto76.github.io" rel="author">Jure Šorn</a> |
|
|
|
</footer> |
|
|
|
|
|
|
|