mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 01:47:47 +03:00 
			
		
		
		
	Updated AffineTransform docstring to mention it uses the inverse matrix
This commit is contained in:
		
							parent
							
								
									2810d7c6ba
								
							
						
					
					
						commit
						41861e8e9f
					
				| 
						 | 
				
			
			@ -48,9 +48,9 @@ class AffineTransform(Transform):
 | 
			
		|||
    Define an affine image transform.
 | 
			
		||||
 | 
			
		||||
    This function takes a 6-tuple (a, b, c, d, e, f) which contain the first
 | 
			
		||||
    two rows from an affine transform matrix. For each pixel (x, y) in the
 | 
			
		||||
    output image, the new value is taken from a position (a x + b y + c,
 | 
			
		||||
    d x + e y + f) in the input image, rounded to nearest pixel.
 | 
			
		||||
    two rows from the inverse of an affine transform matrix. For each pixel
 | 
			
		||||
    (x, y) in the output image, the new value is taken from a position (a x +
 | 
			
		||||
    b y + c, d x + e y + f) in the input image, rounded to nearest pixel.
 | 
			
		||||
 | 
			
		||||
    This function can be used to scale, translate, rotate, and shear the
 | 
			
		||||
    original image.
 | 
			
		||||
| 
						 | 
				
			
			@ -58,7 +58,7 @@ class AffineTransform(Transform):
 | 
			
		|||
    See :py:meth:`.Image.transform`
 | 
			
		||||
 | 
			
		||||
    :param matrix: A 6-tuple (a, b, c, d, e, f) containing the first two rows
 | 
			
		||||
        from an affine transform matrix.
 | 
			
		||||
        from the inverse of an affine transform matrix.
 | 
			
		||||
    """
 | 
			
		||||
 | 
			
		||||
    method = Image.Transform.AFFINE
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user