mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 09:57:43 +03:00 
			
		
		
		
	Merge pull request #2768 from radarhere/params
Corrected parameters in documentation
This commit is contained in:
		
						commit
						684246d254
					
				| 
						 | 
					@ -1570,6 +1570,7 @@ class Image(object):
 | 
				
			||||||
        string.
 | 
					        string.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        :param data: A palette sequence (either a list or a string).
 | 
					        :param data: A palette sequence (either a list or a string).
 | 
				
			||||||
 | 
					        :param rawmode: The raw mode of the palette.
 | 
				
			||||||
        """
 | 
					        """
 | 
				
			||||||
        from . import ImagePalette
 | 
					        from . import ImagePalette
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -185,6 +185,7 @@ def scale(image, factor, resample=Image.NEAREST):
 | 
				
			||||||
    A factor greater than 1 expands the image, between 0 and 1 contracts the
 | 
					    A factor greater than 1 expands the image, between 0 and 1 contracts the
 | 
				
			||||||
    image.
 | 
					    image.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    :param image: The image to rescale.
 | 
				
			||||||
    :param factor: The expansion factor, as a float.
 | 
					    :param factor: The expansion factor, as a float.
 | 
				
			||||||
    :param resample: An optional resampling filter. Same values possible as
 | 
					    :param resample: An optional resampling filter. Same values possible as
 | 
				
			||||||
       in the PIL.Image.resize function.
 | 
					       in the PIL.Image.resize function.
 | 
				
			||||||
| 
						 | 
					@ -271,6 +272,7 @@ def fit(image, size, method=Image.NEAREST, bleed=0.0, centering=(0.5, 0.5)):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    This function was contributed by Kevin Cazabon.
 | 
					    This function was contributed by Kevin Cazabon.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    :param image: The image to size and crop.
 | 
				
			||||||
    :param size: The requested output size in pixels, given as a
 | 
					    :param size: The requested output size in pixels, given as a
 | 
				
			||||||
                 (width, height) tuple.
 | 
					                 (width, height) tuple.
 | 
				
			||||||
    :param method: What resampling method to use. Default is
 | 
					    :param method: What resampling method to use. Default is
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -185,7 +185,8 @@ class iTXt(str):
 | 
				
			||||||
    @staticmethod
 | 
					    @staticmethod
 | 
				
			||||||
    def __new__(cls, text, lang, tkey):
 | 
					    def __new__(cls, text, lang, tkey):
 | 
				
			||||||
        """
 | 
					        """
 | 
				
			||||||
        :param value: value for this key
 | 
					        :param cls: the class to use when creating the instance
 | 
				
			||||||
 | 
					        :param text: value for this key
 | 
				
			||||||
        :param lang: language code
 | 
					        :param lang: language code
 | 
				
			||||||
        :param tkey: UTF-8 version of the key name
 | 
					        :param tkey: UTF-8 version of the key name
 | 
				
			||||||
        """
 | 
					        """
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -69,7 +69,7 @@ class PyAccess(object):
 | 
				
			||||||
        multi-band images
 | 
					        multi-band images
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        :param xy: The pixel coordinate, given as (x, y).
 | 
					        :param xy: The pixel coordinate, given as (x, y).
 | 
				
			||||||
        :param value: The pixel value.
 | 
					        :param color: The pixel value.
 | 
				
			||||||
        """
 | 
					        """
 | 
				
			||||||
        if self.readonly:
 | 
					        if self.readonly:
 | 
				
			||||||
            raise ValueError('Attempt to putpixel a read only image')
 | 
					            raise ValueError('Attempt to putpixel a read only image')
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user