Python PIL.Image 模块-MESH 实例源码

Python PIL.Image 模块,MESH 实例源码

我们从Python开源项目中,提取了以下7代码示例,用于说明如何使用PIL.Image.MESH

项目:imagepaste    作者:robinchenyu    | 项目源码 | 文件源码
def deform(image, deformer, resample=Image.BILINEAR):
    """
    Deform the image.

    :param image: The image to deform.
    :param deformer: A deformer object.  Any object that implements a
                    **getmesh** method can be used.
    :param resample: What resampling filter to use.
    :return: An image.
    """
    return image.transform(
        image.size, Image.MESH, deformer.getmesh(image), resample
        )
项目:ascii-art-py    作者:blinglnav    | 项目源码 | 文件源码
def deform(image, resample
        )
项目:radar    作者:amoose136    | 项目源码 | 文件源码
def deform(image, resample
        )
项目:WXBotForPi    作者:nemoTyrant    | 项目源码 | 文件源码
def deform(image, resample
        )
项目:teleport    作者:eomsoft    | 项目源码 | 文件源码
def deform(image, resample
        )
项目:teleport    作者:eomsoft    | 项目源码 | 文件源码
def deform(image, resample
        )
项目:alfred-image-utilities    作者:danielecook    | 项目源码 | 文件源码
def deform(image, resample=Image.BILINEAR):
    """
    Deform the image.

    :param image: The image to deform.
    :param deformer: A deformer object.  Any object that implements a
                    **getmesh** method can be used.
    :param resample: An optional resampling filter. Same values possible as
       in the PIL.Image.transform function.
    :return: An image.
    """
    return image.transform(
        image.size, resample
        )

相关文章

Python setuptools.dep_util 模块,newer_pairwise_group() ...
Python chainer.utils.type_check 模块,eval() 实例源码 我...
Python chainer.utils.type_check 模块,prod() 实例源码 我...
Python chainer.utils.type_check 模块,expect() 实例源码 ...
Python multiprocessing.managers 模块,BaseProxy() 实例源...
Python multiprocessing.managers 模块,RemoteError() 实例...