Commit Graph

115 Commits

Author SHA1 Message Date
Tommy C
ac7d41545d Update regular_polygon args + arg checks
Summary of changes

- Allow positional args in `regular_polygon` method
- Allow multiple bounding box formats
    - (e.g. bbox = [(x0, y0), (x1, y1)] or [x0, y0, x1, y1])
- Check if bounding box is square
- Update var names
    - b_box => bbox
    - nb_sides => n_sides
2020-08-16 21:07:16 +01:00
Tommy C
0ed01dd964 Add ImageDraw.regular_polygon 2020-08-16 13:29:13 +01:00
nulano
9589159585 use cross-reference for None value 2020-07-10 00:08:27 +02:00
nulano
2761a02d13 fix module references
(cherry picked from commit b077850baa)
2020-06-27 15:33:55 +02:00
nulano
eab2260313 add docs for ImageDraw2 based on ImageDraw, fix ImageDraw links 2020-06-14 14:48:22 +02:00
Andrew Murray
402a59f6ec Fixed formatting [ci skip] 2020-06-08 13:17:08 +10:00
Hugo
cda682efc4 Parameter values in code formatting 2020-06-04 11:45:13 +03:00
Hugo van Kemenade
95f3f359b7
Fix name
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2020-06-03 11:23:24 +03:00
Hugo
14302aa53d Fix parameter formatting 2020-06-02 22:14:36 +03:00
Hugo
87de783226 Replace simple code formatting with :py:meth: markup 2020-06-02 21:48:53 +03:00
Hugo
087e42f743 Move OpenType docs link to a reference 2020-06-02 21:28:34 +03:00
Hugo
dc0c7bea37 Update ImageDraw docs formatting and links 2020-06-02 21:16:13 +03:00
Andrew Murray
b2f187c4ec Added multiline text example [ci skip] 2020-04-12 15:11:29 +10:00
Andrew Murray
04f7c75466 Use context manager when opening images [ci skip] 2020-02-29 10:29:44 +11:00
Hugo van Kemenade
0e993c4740
Merge pull request #4334 from radarhere/outline_width
Allow explicit zero width to hide outline
2020-02-15 14:30:12 +02:00
Andrew Murray
1c102fd040 Updated spacing defaults [ci skip] 2020-01-18 10:26:20 +11:00
Andrew Murray
56f30ef792 Allow explicit zero width to hide outline 2020-01-08 21:55:15 +11:00
Andrew Murray
f93a5d0972 Added text stroking 2019-07-29 06:40:03 +10:00
Jon Dufresne
8fac23b3df Clean up several Sphinx warnings
Appeared as:

    Pillow/docs/reference/ImageDraw.rst:137: WARNING: Unexpected indentation.
    Pillow/docs/reference/ImageDraw.rst:164: WARNING: Unexpected indentation.
    Pillow/docs/reference/ImageDraw.rst:177: WARNING: Unexpected indentation.
    Pillow/docs/reference/ImageDraw.rst:208: WARNING: Unexpected indentation.
    Pillow/docs/reference/ImageStat.rst:24: WARNING: Explicit markup ends without a blank line; unexpected unindent.
2019-07-06 17:12:09 -07:00
Andrew Murray
31340bb3c6 Corrected names in documentation 2019-04-24 06:19:17 +10:00
Ben Yang
8bd4bbb808 implemented language parameter for multiline ImageDraw methods, updated release notes 2019-03-11 20:21:52 -07:00
Ben Yang
515244b672 moved language parameter in ImageDraw documentation 2019-03-11 18:56:22 -07:00
Ben Yang
d5bbf01254 moved 'language' parameter to last parameter in relevant functions 2019-03-11 18:56:22 -07:00
Ben Yang
8624efd283 added ability to set language for text rendering 2019-03-11 18:55:46 -07:00
Andrew Murray
32c344b7ce Added note about ImageDraw operations that exceed image bounds [ci skip] 2019-01-27 22:10:54 +11:00
Andrew Murray
1e305380ae
Merge pull request #3094 from hugovk/add-width-to-shapes
Add line width parameter to rectangle and ellipse-based shapes
2018-09-29 23:21:03 +10:00
Hugo
292fa6120e 'btt' (bottom to top) is not supported by libraqm 2018-09-18 13:41:55 +03:00
Hugo
e266b033d1 Update version added 2018-09-16 23:41:24 +03:00
Andrew Murray
53acbfc4d5 Added versionadded [ci skip] 2018-09-16 22:30:11 +10:00
Andrew Murray
f3842460ba Added line joints 2018-09-16 21:29:09 +10:00
Hugo
fbe5bdb6b6 Also apply width to pieslice's inner lines 2018-09-01 14:40:36 +03:00
Hugo
d6e3ef85c2 Add width parameter to arc, chord, ellipse, pieslice 2018-07-02 11:26:42 +03:00
Hugo
9dedbff713 Add width parameter to rectangle 2018-07-02 11:21:30 +03:00
Andrew Murray
bf96b9f87a Updated redirected URLs [ci skip] 2018-06-23 10:58:41 +10:00
Hugo
b6f337fa60 Clarify bounding box for arc, chord, ellipse, pieslice 2018-05-06 16:07:04 +03:00
Hugo
cbfc832ccd Remove 'del draw' from code example 2018-04-14 19:00:55 +03:00
Andrew Murray
fc3c4c0119 Corrected reference to method 2018-02-14 20:09:00 +11:00
Lukas Waymann
4960da0519 Correct error in ImageDraw documentation [ci skip]
The first parameter of several functions is described as "four points".
It should be "two points" or "four coordinates".
2017-11-15 11:34:51 +01:00
Hugo
dfafd51a2c Link to maintained version of aggdraw
See https://github.com/pytroll/aggdraw/issues/11
2017-10-23 18:45:57 +03:00
Andrew Murray
7e980d4897 Corrected docs syntax 2017-09-22 20:29:20 +10:00
Andrew Murray
a05c2cf7ff Improved ImageDraw documentation 2017-07-16 15:22:46 +10:00
Andrew Murray
f33976f81d Corrected class name in ImageDraw docs 2017-07-16 15:21:26 +10:00
wiredfool
8feac899dd Merge pull request #2576 from wiredfool/pr_2284
Complex Text Support
2017-07-01 10:45:18 +01:00
wiredfool
9f7aae3505 Doc changes/additions 2017-06-29 07:02:02 -07:00
Andrew Murray
91215c384d Fixed typo [ci skip] 2017-06-24 15:04:37 +10:00
Fahad Al-Saidi
e07a254ed9 update 2017-06-21 14:00:14 -07:00
Fahad Al-Saidi
6dc4c7ea06 improve docs for CTL 2017-06-21 14:00:14 -07:00
shamsa
fe871bb736 Document complex text layout features. 2017-06-21 14:00:13 -07:00
Garland Trice
7b77ee5379 Fixing small typo
Working on a small project, reading thru the docs and noticed this.
2017-06-21 19:02:51 +10:00
hugovk
4c3107c940 Remove docs about deprecated and already removed code 2017-05-27 22:16:40 +03:00
Andrew Murray
424a09ecad Updated references to point to existing files [ci skip] 2017-05-06 23:20:34 +10:00
Andrew Murray
68ea064336 Added documentation [ci skip] 2016-02-01 09:22:18 +11:00
Andrew Murray
6bd7e7f02d Removed trailing whitespace 2015-10-11 21:24:35 +11:00
wiredfool
89ccf66ff7 Merge pull request #1343 from radarhere/deprecated
Removed deprecated code
2015-09-29 15:38:34 +01:00
Andrew Murray
d072ee469c Corrected ImageDraw multiline text param documentation [ci skip] 2015-07-15 22:43:52 +10:00
Hugo van Kemenade
7598f6c955 Add missing fill param
And re-order params to match method.

[CI skip]
2015-07-15 14:00:47 +03:00
Andrew Murray
94ed100bb2 Removed ImageDraw methods deprecated in PIL 1.1.15 2015-07-13 17:41:26 +10:00
Andrew Murray
9546fac7ec Added multiline documentation 2015-06-18 13:22:04 +10:00
Audrey Roy
967d39d1d6 Improve reference docs for PIL.ImageDraw.Draw.pieslice() 2015-03-23 21:16:53 -07:00
wiredfool
1b170dad68 Partial opacity text example, parameters on ImageDraw.Draw [ci skip] 2014-07-22 16:43:23 -07:00
Hugo
4dcae4402c Add back the other bounding box [CI skip] 2014-05-27 23:55:43 +03:00
wiredfool
2662c38f5c Updating docs to reflect current understanding 2014-05-20 12:59:31 -07:00
Stephen Johnson
20b9d9774a Fully document PIL.ImageOps; fix some :py:mod: markup 2013-10-12 22:17:45 -07:00
Stephen Johnson
b98c3f05cd Fix a couple of example imports 2013-10-12 13:53:31 -07:00
Stephen Johnson
5c9329d5ba Fully document PIL.ImageDraw 2013-10-12 00:52:01 -07:00