mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 09:56:17 +03:00
Added release notes for #3406 [ci skip]
This commit is contained in:
parent
ee785c7582
commit
1ace2f47ff
|
@ -1,6 +1,19 @@
|
|||
5.4.0 (unreleased)
|
||||
-----
|
||||
|
||||
API Changes
|
||||
===========
|
||||
|
||||
Negative indexes in pixel access
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
When accessing individual image pixels, negative indexes are now also accepted.
|
||||
For example, to get or set the farthest pixel in the lower right of an image::
|
||||
|
||||
px = im.load()
|
||||
print(px[-1, -1])
|
||||
px[-1, -1] = (0, 0, 0)
|
||||
|
||||
|
||||
Other Changes
|
||||
=============
|
||||
|
|
Loading…
Reference in New Issue
Block a user