Skip to content

Commit 0b2657e

Browse files
committed
Image
1 parent fbb44db commit 0b2657e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2656,10 +2656,10 @@ from PIL import Image
26562656

26572657
```python
26582658
<tuple/int> = <Image>.getpixel((x, y)) # Returns a pixel.
2659-
<Image>.putpixel((x, y), <tuple/int>) # Writes a pixel to image.
2659+
<Image>.putpixel((x, y), <tuple/int>) # Writes a pixel to the image.
26602660
<ImagingCore> = <Image>.getdata() # Returns a sequence of pixels.
26612661
<Image>.putdata(<list/ImagingCore>) # Writes a sequence of pixels.
2662-
<Image>.paste(<Image>, (x, y)) # Writes an image to image.
2662+
<Image>.paste(<Image>, (x, y)) # Writes an image to the image.
26632663
```
26642664

26652665
```bash

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2263,10 +2263,10 @@
22632263
&lt;Image&gt;.show()
22642264
</code></pre>
22652265
<pre><code class="python language-python hljs">&lt;tuple/int&gt; = &lt;Image&gt;.getpixel((x, y)) <span class="hljs-comment"># Returns a pixel.</span>
2266-
&lt;Image&gt;.putpixel((x, y), &lt;tuple/int&gt;) <span class="hljs-comment"># Writes a pixel to image.</span>
2266+
&lt;Image&gt;.putpixel((x, y), &lt;tuple/int&gt;) <span class="hljs-comment"># Writes a pixel to the image.</span>
22672267
&lt;ImagingCore&gt; = &lt;Image&gt;.getdata() <span class="hljs-comment"># Returns a sequence of pixels.</span>
22682268
&lt;Image&gt;.putdata(&lt;list/ImagingCore&gt;) <span class="hljs-comment"># Writes a sequence of pixels.</span>
2269-
&lt;Image&gt;.paste(&lt;Image&gt;, (x, y)) <span class="hljs-comment"># Writes an image to image.</span>
2269+
&lt;Image&gt;.paste(&lt;Image&gt;, (x, y)) <span class="hljs-comment"># Writes an image to the image.</span>
22702270
</code></pre>
22712271
<pre><code class="bash language-bash hljs">&lt;2d_array&gt; = np.array(&lt;Image&gt;) <span class="hljs-comment"># Converts greyscale image to NumPy array.</span>
22722272
&lt;3d_array&gt; = np.array(&lt;Image&gt;) <span class="hljs-comment"># Converts color image to NumPy array.</span>

0 commit comments

Comments
 (0)