You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/reference/PixelAccess.rst
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,13 @@
6
6
The PixelAccess class provides read and write access to
7
7
:py:class:`PIL.Image` data at a pixel level.
8
8
9
-
.. note:: Accessing individual pixels is fairly slow. If you are looping over all of the pixels in an image, there is likely a faster way using other parts of the Pillow API.
9
+
.. note:: Accessing individual pixels is fairly slow. If you are
10
+
looping over all of the pixels in an image, there is likely
11
+
a faster way using other parts of the Pillow API.
12
+
13
+
:mod:`~PIL.Image`, :mod:`~PIL.ImageChops` and :mod:`~PIL.ImageOps`
14
+
have methods for many standard operations. If you wish to perform
15
+
a custom mapping, check out :py:meth:`~PIL.Image.Image.point`.
10
16
11
17
Example
12
18
-------
@@ -39,7 +45,7 @@ Access using negative indexes is also possible.
Copy file name to clipboardExpand all lines: docs/reference/PyAccess.rst
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,8 +7,12 @@
7
7
The :py:mod:`~PIL.PyAccess` module provides a CFFI/Python implementation of the :ref:`PixelAccess`. This implementation is far faster on PyPy than the PixelAccess version.
8
8
9
9
.. note:: Accessing individual pixels is fairly slow. If you are
10
-
looping over all of the pixels in an image, there is likely
11
-
a faster way using other parts of the Pillow API.
10
+
looping over all of the pixels in an image, there is likely
11
+
a faster way using other parts of the Pillow API.
12
+
13
+
:mod:`~PIL.Image`, :mod:`~PIL.ImageChops` and :mod:`~PIL.ImageOps`
14
+
have methods for many standard operations. If you wish to perform
15
+
a custom mapping, check out :py:meth:`~PIL.Image.Image.point`.
0 commit comments