mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 01:16:16 +03:00
Merge pull request #5847 from radarhere/documentation
This commit is contained in:
commit
ae7c2cb2e6
|
@ -242,7 +242,7 @@ Methods
|
|||
numeric values like ``[x, y, x, y, ...]``.
|
||||
:param fill: Color to use for the point.
|
||||
|
||||
.. py:method:: ImageDraw.polygon(xy, fill=None, outline=None)
|
||||
.. py:method:: ImageDraw.polygon(xy, fill=None, outline=None, width=1)
|
||||
|
||||
Draws a polygon.
|
||||
|
||||
|
@ -252,8 +252,9 @@ Methods
|
|||
|
||||
:param xy: Sequence of either 2-tuples like ``[(x, y), (x, y), ...]`` or
|
||||
numeric values like ``[x, y, x, y, ...]``.
|
||||
:param outline: Color to use for the outline.
|
||||
:param fill: Color to use for the fill.
|
||||
:param outline: Color to use for the outline.
|
||||
:param width: The line width, in pixels.
|
||||
|
||||
|
||||
.. py:method:: ImageDraw.regular_polygon(bounding_circle, n_sides, rotation=0, fill=None, outline=None)
|
||||
|
|
|
@ -55,8 +55,10 @@ TODO
|
|||
API Changes
|
||||
===========
|
||||
|
||||
TODO
|
||||
^^^^
|
||||
Added line width parameter to ImageDraw polygon
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
An optional line ``width`` parameter has been added to ``ImageDraw.Draw.polygon``.
|
||||
|
||||
TODO
|
||||
|
||||
|
@ -98,3 +100,8 @@ TrueType fonts may now be pickled and unpickled. For example:
|
|||
|
||||
# Later...
|
||||
unpickled_font = pickle.loads(pickled_font)
|
||||
|
||||
Added support for additional TGA orientations
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
TGA images with top right or bottom right orientations are now supported.
|
||||
|
|
Loading…
Reference in New Issue
Block a user