From bca6c4384f5df6f54a1cb7f7de96c5802805ace6 Mon Sep 17 00:00:00 2001 From: storesource <36395224+storesource@users.noreply.github.com> Date: Tue, 27 Mar 2018 19:01:33 +0530 Subject: [PATCH] Added review Changes Changed parameter name to fillcolor Added full stop on param description --- src/PIL/Image.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/PIL/Image.py b/src/PIL/Image.py index 657141ba2..aacb814c0 100644 --- a/src/PIL/Image.py +++ b/src/PIL/Image.py @@ -1749,7 +1749,7 @@ class Image(object): return self._new(self.im.resize(size, resample, box)) def rotate(self, angle, resample=NEAREST, expand=0, center=None, - translate=None, backgroundcolor=None): + translate=None, fillcolor=None): """ Returns a rotated copy of this image. This method returns a copy of this image, rotated the given number of degrees counter @@ -1771,7 +1771,7 @@ class Image(object): :param center: Optional center of rotation (a 2-tuple). Origin is the upper left corner. Default is the center of the image. :param translate: An optional post-rotate translation (a 2-tuple). - :param backgroundcolor: An optional color for the color outside the transformed image + :param fillcolor: An optional color for the color outside the rotated image. :returns: An :py:class:`~PIL.Image.Image` object. """ @@ -1852,7 +1852,7 @@ class Image(object): matrix) w, h = nw, nh - return self.transform((w, h), AFFINE, matrix, resample, fillcolor=backgroundcolor) + return self.transform((w, h), AFFINE, matrix, resample, fillcolor=fillcolor) def save(self, fp, format=None, **params): """