Skip to content

Commit d90d4d2

Browse files
committed
Image
1 parent 091f07f commit d90d4d2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2771,7 +2771,7 @@ from PIL import Image, ImageDraw
27712771
```python
27722772
<int/tuple> = <Image>.getpixel((x, y)) # Returns a pixel.
27732773
<Image>.putpixel((x, y), <int/tuple>) # Writes a pixel to the image.
2774-
<ImagingCore> = <Image>.getdata() # Returns a flattened sequence of pixels.
2774+
<ImagingCore> = <Image>.getdata() # Returns a flattened view of the pixels.
27752775
<Image>.putdata(<list/ImagingCore>) # Writes a flattened sequence of pixels.
27762776
<Image>.paste(<Image>, (x, y)) # Writes passed image to the image.
27772777
```

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
<body>
5656
<header>
57-
<aside>April 12, 2023</aside>
57+
<aside>April 13, 2023</aside>
5858
<a href="https://gto76.github.io" rel="author">Jure Šorn</a>
5959
</header>
6060

@@ -2263,7 +2263,7 @@ <h3 id="format-2">Format</h3><div><h4 id="forstandardtypesizesandmanualalignment
22632263
</code></pre>
22642264
<pre><code class="python language-python hljs">&lt;int/tuple&gt; = &lt;Image&gt;.getpixel((x, y)) <span class="hljs-comment"># Returns a pixel.</span>
22652265
&lt;Image&gt;.putpixel((x, y), &lt;int/tuple&gt;) <span class="hljs-comment"># Writes a pixel to the image.</span>
2266-
&lt;ImagingCore&gt; = &lt;Image&gt;.getdata() <span class="hljs-comment"># Returns a flattened sequence of pixels.</span>
2266+
&lt;ImagingCore&gt; = &lt;Image&gt;.getdata() <span class="hljs-comment"># Returns a flattened view of the pixels.</span>
22672267
&lt;Image&gt;.putdata(&lt;list/ImagingCore&gt;) <span class="hljs-comment"># Writes a flattened sequence of pixels.</span>
22682268
&lt;Image&gt;.paste(&lt;Image&gt;, (x, y)) <span class="hljs-comment"># Writes passed image to the image.</span>
22692269
</code></pre>
@@ -2935,7 +2935,7 @@ <h3 id="format-2">Format</h3><div><h4 id="forstandardtypesizesandmanualalignment
29352935

29362936

29372937
<footer>
2938-
<aside>April 12, 2023</aside>
2938+
<aside>April 13, 2023</aside>
29392939
<a href="https://gto76.github.io" rel="author">Jure Šorn</a>
29402940
</footer>
29412941

0 commit comments

Comments
 (0)