mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-03-03 19:45:56 +03:00
Added release notes [ci skip]
This commit is contained in:
parent
9ce3eba7eb
commit
62bf920634
|
@ -13,10 +13,20 @@ when Tk/Tcl 8.5 will be the minimum supported.
|
||||||
API Changes
|
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
|
API Additions
|
||||||
=============
|
=============
|
||||||
|
|
Loading…
Reference in New Issue
Block a user