mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-04 13:40:54 +03:00
Added documentation for negative index pixel access [ci skip]
This commit is contained in:
parent
1ace2f47ff
commit
e805401403
|
@ -28,6 +28,13 @@ Results in the following::
|
|||
(23, 24, 68)
|
||||
(0, 0, 0)
|
||||
|
||||
Access using negative indexes is also possible.
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
px[-1,-1] = (0,0,0)
|
||||
print (px[-1,-1])
|
||||
|
||||
|
||||
|
||||
:py:class:`PixelAccess` Class
|
||||
|
|
|
@ -29,6 +29,13 @@ Results in the following::
|
|||
(23, 24, 68)
|
||||
(0, 0, 0)
|
||||
|
||||
Access using negative indexes is also possible.
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
px[-1,-1] = (0,0,0)
|
||||
print (px[-1,-1])
|
||||
|
||||
|
||||
|
||||
:py:class:`PyAccess` Class
|
||||
|
|
Loading…
Reference in New Issue
Block a user