Skip to content

Commit b57b4e5

Browse files
authored
Merge pull request #8735 from radarhere/affine
2 parents a788ab3 + 41861e8 commit b57b4e5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/PIL/ImageTransform.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,17 @@ class AffineTransform(Transform):
4848
Define an affine image transform.
4949
5050
This function takes a 6-tuple (a, b, c, d, e, f) which contain the first
51-
two rows from an affine transform matrix. For each pixel (x, y) in the
52-
output image, the new value is taken from a position (a x + b y + c,
53-
d x + e y + f) in the input image, rounded to nearest pixel.
51+
two rows from the inverse of an affine transform matrix. For each pixel
52+
(x, y) in the output image, the new value is taken from a position (a x +
53+
b y + c, d x + e y + f) in the input image, rounded to nearest pixel.
5454
5555
This function can be used to scale, translate, rotate, and shear the
5656
original image.
5757
5858
See :py:meth:`.Image.transform`
5959
6060
:param matrix: A 6-tuple (a, b, c, d, e, f) containing the first two rows
61-
from an affine transform matrix.
61+
from the inverse of an affine transform matrix.
6262
"""
6363

6464
method = Image.Transform.AFFINE

0 commit comments

Comments
 (0)