Added release notes [ci skip]

This commit is contained in:
Andrew Murray 2021-03-08 20:10:17 +11:00
parent 9ce3eba7eb
commit 62bf920634

View File

@ -13,10 +13,20 @@ when Tk/Tcl 8.5 will be the minimum supported.
API Changes
===========
TODO
^^^^
ImageDraw.rounded_rectangle
^^^^^^^^^^^^^^^^^^^^^^^^^^^
TODO
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
=============