mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-28 02:04:36 +03:00
Merge pull request #6099 from radarhere/pixels
Document alternatives to accessing individual pixels
This commit is contained in:
commit
fe9b6998f8
|
@ -6,7 +6,13 @@
|
||||||
The PixelAccess class provides read and write access to
|
The PixelAccess class provides read and write access to
|
||||||
:py:class:`PIL.Image` data at a pixel level.
|
:py:class:`PIL.Image` data at a pixel level.
|
||||||
|
|
||||||
.. 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.
|
.. 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.
|
||||||
|
|
||||||
|
:mod:`~PIL.Image`, :mod:`~PIL.ImageChops` and :mod:`~PIL.ImageOps`
|
||||||
|
have methods for many standard operations. If you wish to perform
|
||||||
|
a custom mapping, check out :py:meth:`~PIL.Image.Image.point`.
|
||||||
|
|
||||||
Example
|
Example
|
||||||
-------
|
-------
|
||||||
|
@ -39,7 +45,7 @@ Access using negative indexes is also possible.
|
||||||
|
|
||||||
|
|
||||||
:py:class:`PixelAccess` Class
|
:py:class:`PixelAccess` Class
|
||||||
-----------------------------------
|
-----------------------------
|
||||||
|
|
||||||
.. class:: PixelAccess
|
.. class:: PixelAccess
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,10 @@ The :py:mod:`~PIL.PyAccess` module provides a CFFI/Python implementation of the
|
||||||
looping over all of the pixels in an image, there is likely
|
looping over all of the pixels in an image, there is likely
|
||||||
a faster way using other parts of the Pillow API.
|
a faster way using other parts of the Pillow API.
|
||||||
|
|
||||||
|
:mod:`~PIL.Image`, :mod:`~PIL.ImageChops` and :mod:`~PIL.ImageOps`
|
||||||
|
have methods for many standard operations. If you wish to perform
|
||||||
|
a custom mapping, check out :py:meth:`~PIL.Image.Image.point`.
|
||||||
|
|
||||||
Example
|
Example
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user