mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Merge pull request #7138 from radarhere/imagepath_default
This commit is contained in:
commit
97c0e29835
|
@ -28,7 +28,7 @@ def test_path():
|
|||
(6.0, 7.0),
|
||||
(8.0, 9.0),
|
||||
]
|
||||
assert p.tolist(1) == [0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0]
|
||||
assert p.tolist(True) == [0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0]
|
||||
|
||||
assert p.getbbox() == (0.0, 1.0, 8.0, 9.0)
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@ vector data. Path objects can be passed to the methods on the
|
|||
|
||||
Maps the path through a function.
|
||||
|
||||
.. py:method:: PIL.ImagePath.Path.tolist(flat=0)
|
||||
.. py:method:: PIL.ImagePath.Path.tolist(flat=False)
|
||||
|
||||
Converts the path to a Python list [(x, y), …].
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user