Corrected parameters in documentation

This commit is contained in:
Andrew Murray 2017-09-29 21:08:49 +10:00
parent 93f3a01dca
commit 1856d106ea
4 changed files with 6 additions and 2 deletions

View File

@ -1570,6 +1570,7 @@ class Image(object):
string.
:param data: A palette sequence (either a list or a string).
:param rawmode: The raw mode of the palette.
"""
from . import ImagePalette

View File

@ -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
image.
:param image: The image to rescale.
:param factor: The expansion factor, as a float.
:param resample: An optional resampling filter. Same values possible as
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.
:param image: The image to size and crop.
:param size: The requested output size in pixels, given as a
(width, height) tuple.
:param method: What resampling method to use. Default is

View File

@ -185,7 +185,8 @@ class iTXt(str):
@staticmethod
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 tkey: UTF-8 version of the key name
"""

View File

@ -69,7 +69,7 @@ class PyAccess(object):
multi-band images
:param xy: The pixel coordinate, given as (x, y).
:param value: The pixel value.
:param color: The pixel value.
"""
if self.readonly:
raise ValueError('Attempt to putpixel a read only image')