@@ -124,7 +124,7 @@ Example: Draw Multiline Text
124124 Functions
125125---------
126126
127- .. py :class :: PIL .ImageDraw. Draw(im, mode = None )
127+ .. py :method :: Draw(im, mode = None )
128128
129129 Creates an object that can be used to draw in the given image.
130130
@@ -140,13 +140,13 @@ Functions
140140Methods
141141-------
142142
143- .. py :method :: PIL .ImageDraw. ImageDraw.getfont()
143+ .. py :method :: ImageDraw.getfont()
144144
145145 Get the current default font.
146146
147147 :returns: An image font.
148148
149- .. py :method :: PIL .ImageDraw. ImageDraw.arc(xy, start, end, fill = None , width = 0 )
149+ .. py :method :: ImageDraw.arc(xy, start, end, fill = None , width = 0 )
150150
151151 Draws an arc (a portion of a circle outline) between the start and end
152152 angles, inside the given bounding box.
@@ -162,7 +162,7 @@ Methods
162162
163163 .. versionadded :: 5.3.0
164164
165- .. py :method :: PIL .ImageDraw. ImageDraw.bitmap(xy, bitmap, fill = None )
165+ .. py :method :: ImageDraw.bitmap(xy, bitmap, fill = None )
166166
167167 Draws a bitmap (mask) at the given position, using the current fill color
168168 for the non-zero portions. The bitmap should be a valid transparency mask
@@ -173,7 +173,7 @@ Methods
173173 To paste pixel data into an image, use the
174174 :py:meth: `~PIL.Image.Image.paste ` method on the image itself.
175175
176- .. py :method :: PIL .ImageDraw. ImageDraw.chord(xy, start, end, fill = None , outline = None , width = 1 )
176+ .. py :method :: ImageDraw.chord(xy, start, end, fill = None , outline = None , width = 1 )
177177
178178 Same as :py:meth: `~PIL.ImageDraw.ImageDraw.arc `, but connects the end points
179179 with a straight line.
@@ -187,7 +187,7 @@ Methods
187187
188188 .. versionadded :: 5.3.0
189189
190- .. py :method :: PIL .ImageDraw. ImageDraw.ellipse(xy, fill = None , outline = None , width = 1 )
190+ .. py :method :: ImageDraw.ellipse(xy, fill = None , outline = None , width = 1 )
191191
192192 Draws an ellipse inside the given bounding box.
193193
@@ -200,9 +200,9 @@ Methods
200200
201201 .. versionadded :: 5.3.0
202202
203- .. py :method :: PIL .ImageDraw. ImageDraw.line(xy, fill = None , width = 0 , joint = None )
203+ .. py :method :: ImageDraw.line(xy, fill = None , width = 0 , joint = None )
204204
205- Draws a line between the coordinates in the ** xy ** list.
205+ Draws a line between the coordinates in the `` xy `` list.
206206
207207 :param xy: Sequence of either 2-tuples like ``[(x, y), (x, y), ...] `` or
208208 numeric values like ``[x, y, x, y, ...] ``.
@@ -216,7 +216,7 @@ Methods
216216
217217 .. versionadded :: 5.3.0
218218
219- .. py :method :: PIL .ImageDraw. ImageDraw.pieslice(xy, start, end, fill = None , outline = None , width = 1 )
219+ .. py :method :: ImageDraw.pieslice(xy, start, end, fill = None , outline = None , width = 1 )
220220
221221 Same as arc, but also draws straight lines between the end points and the
222222 center of the bounding box.
@@ -233,15 +233,15 @@ Methods
233233
234234 .. versionadded :: 5.3.0
235235
236- .. py :method :: PIL .ImageDraw. ImageDraw.point(xy, fill = None )
236+ .. py :method :: ImageDraw.point(xy, fill = None )
237237
238238 Draws points (individual pixels) at the given coordinates.
239239
240240 :param xy: Sequence of either 2-tuples like ``[(x, y), (x, y), ...] `` or
241241 numeric values like ``[x, y, x, y, ...] ``.
242242 :param fill: Color to use for the point.
243243
244- .. py :method :: PIL .ImageDraw. ImageDraw.polygon(xy, fill = None , outline = None )
244+ .. py :method :: ImageDraw.polygon(xy, fill = None , outline = None )
245245
246246 Draws a polygon.
247247
@@ -254,7 +254,7 @@ Methods
254254 :param outline: Color to use for the outline.
255255 :param fill: Color to use for the fill.
256256
257- .. py :method :: PIL .ImageDraw. ImageDraw.rectangle(xy, fill = None , outline = None , width = 1 )
257+ .. py :method :: ImageDraw.rectangle(xy, fill = None , outline = None , width = 1 )
258258
259259 Draws a rectangle.
260260
@@ -267,13 +267,13 @@ Methods
267267
268268 .. versionadded :: 5.3.0
269269
270- .. py :method :: PIL .ImageDraw. ImageDraw.shape(shape, fill = None , outline = None )
270+ .. py :method :: ImageDraw.shape(shape, fill = None , outline = None )
271271
272272 .. warning :: This method is experimental.
273273
274274 Draw a shape.
275275
276- .. py :method :: PIL .ImageDraw. ImageDraw.text(xy, text, fill = None , font = None , anchor = None , spacing = 4 , align = " left" , direction = None , features = None , language = None , stroke_width = 0 , stroke_fill = None )
276+ .. py :method :: ImageDraw.text(xy, text, fill = None , font = None , anchor = None , spacing = 4 , align = " left" , direction = None , features = None , language = None , stroke_width = 0 , stroke_fill = None )
277277
278278 Draws the string at the given position.
279279
@@ -325,7 +325,7 @@ Methods
325325
326326 .. versionadded :: 6.2.0
327327
328- .. py :method :: PIL .ImageDraw. ImageDraw.multiline_text(xy, text, fill = None , font = None , anchor = None , spacing = 4 , align = " left" , direction = None , features = None , language = None )
328+ .. py :method :: ImageDraw.multiline_text(xy, text, fill = None , font = None , anchor = None , spacing = 4 , align = " left" , direction = None , features = None , language = None )
329329
330330 Draws the string at the given position.
331331
@@ -362,7 +362,7 @@ Methods
362362
363363 .. versionadded :: 6.0.0
364364
365- .. py :method :: PIL .ImageDraw. ImageDraw.textsize(text, font = None , spacing = 4 , direction = None , features = None , language = None , stroke_width = 0 )
365+ .. py :method :: ImageDraw.textsize(text, font = None , spacing = 4 , direction = None , features = None , language = None , stroke_width = 0 )
366366
367367 Return the size of the given string, in pixels.
368368
@@ -401,7 +401,7 @@ Methods
401401
402402 .. versionadded :: 6.2.0
403403
404- .. py :method :: PIL .ImageDraw. ImageDraw.multiline_textsize(text, font = None , spacing = 4 , direction = None , features = None , language = None , stroke_width = 0 )
404+ .. py :method :: ImageDraw.multiline_textsize(text, font = None , spacing = 4 , direction = None , features = None , language = None , stroke_width = 0 )
405405
406406 Return the size of the given string, in pixels.
407407
@@ -439,7 +439,7 @@ Methods
439439
440440 .. versionadded :: 6.2.0
441441
442- .. py :method :: PIL .ImageDraw. getdraw(im = None , hints = None )
442+ .. py :method :: getdraw(im = None , hints = None )
443443
444444 .. warning :: This method is experimental.
445445
@@ -450,7 +450,7 @@ Methods
450450 :param hints: An optional list of hints.
451451 :returns: A (drawing context, drawing resource factory) tuple.
452452
453- .. py :method :: PIL .ImageDraw. floodfill(image, xy, value, border = None , thresh = 0 )
453+ .. py :method :: floodfill(image, xy, value, border = None , thresh = 0 )
454454
455455 .. warning :: This method is experimental.
456456
0 commit comments