Did I find the right examples for you? yes no

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)
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.

        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
        )
        


src/p/i/Pillow-2.4.0/Tests/test_imageops.py   Pillow(Download)
    ImageOps.crop(lena("RGB"), 1)
 
    ImageOps.deform(lena("L"), deformer)
    ImageOps.deform(lena("RGB"), deformer)
 

src/p/i/Pillow-HEAD/Tests/test_imageops.py   Pillow(Download)
    ImageOps.crop(lena("RGB"), 1)
 
    ImageOps.deform(lena("L"), deformer)
    ImageOps.deform(lena("RGB"), deformer)