mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-03-23 11:34:14 +03:00
59 lines
1.5 KiB
ReStructuredText
59 lines
1.5 KiB
ReStructuredText
8.2.0
|
|
-----
|
|
|
|
Deprecations
|
|
============
|
|
|
|
Tk/Tcl 8.4
|
|
^^^^^^^^^^
|
|
|
|
Support for Tk/Tcl 8.4 is deprecated and will be removed in Pillow 10.0.0 (2023-01-02),
|
|
when Tk/Tcl 8.5 will be the minimum supported.
|
|
|
|
API Changes
|
|
===========
|
|
|
|
ImageDraw.rounded_rectangle
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
Added :py:meth:`~PIL.ImageDraw.ImageDraw.rounded_rectangle`. It works the same as
|
|
:py:meth:`~PIL.ImageDraw.ImageDraw.rectangle`, except with an additional ``radius``
|
|
argument. ``radius`` is limited to half of the width or the height, so that users can
|
|
create a circle, but not any other ellipse.
|
|
|
|
.. code-block:: python
|
|
|
|
from PIL import Image, ImageDraw
|
|
im = Image.new("RGB", (200, 200))
|
|
draw = ImageDraw.Draw(im)
|
|
draw.rounded_rectangle(xy=(10, 20, 190, 180), radius=30, fill="red")
|
|
|
|
API Additions
|
|
=============
|
|
|
|
ImageShow.IPythonViewer
|
|
^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
If IPython is present, this new ``ImageShow.Viewer`` subclass will be
|
|
registered. It displays images on all IPython frontends. This will be helpful
|
|
to users of Google Colab, allowing ``im.show()`` to display images.
|
|
|
|
It is lower in priority than the other default Viewer instances, so it will
|
|
only be used by ``im.show()`` or ``ImageShow.show()`` if none of the other
|
|
viewers are available. This means that the behaviour of ``ImageShow`` will stay
|
|
the same for most Pillow users.
|
|
|
|
Security
|
|
========
|
|
|
|
TODO
|
|
|
|
Other Changes
|
|
=============
|
|
|
|
PyQt6
|
|
^^^^^
|
|
|
|
Support has been added for PyQt6. If it is installed, it will be used instead of
|
|
PySide6, PyQt5 or PySide2.
|