2013-06-03 3 views

ответ

1

Справочник - лучшая ссылка, которую я нашел, помимо Google для конкретных решений. Если вы копаться в ней, есть некоторые достойные примеры включены на страницах модуля, как здесь для модуля Image: http://effbot.org/imagingbook/image.htm

Я не думаю, что вы имеете в виду API, кстати, потому что сама PIL представляет собой программный интерфейс ,

0

Я рекомендую вам перейти к исходному коду самой функции, чтобы увидеть, как использовать параметры для каждой функции (не лучшее решение, но это что-то). Например, вы увидите что-то вроде:

def point(self, lut, mode=None): 
    """ 
    Maps this image through a lookup table or function. 

    :param lut: A lookup table, containing 256 (or 65336 if 
     self.mode=="I" and mode == "L") values per band in the 
     image. A function can be used instead, it should take a 
     single argument. The function is called once for each 
     possible pixel value, and the resulting table is applied to 
     all bands of the image. 
    :param mode: Output mode (default is same as input). In the 
     current version, this can only be used if the source image 
     has mode "L" or "P", and the output has mode "1" or the 
     source image mode is "I" and the output mode is "L". 
    :returns: An :py:class:`~PIL.Image.Image` object. 
    """ 

Если вы используете Eclipse, вы можете нам F3 для перехода в функцию.

Смежные вопросы