form`.

  It may also be an object with a ``method.getdata`` method
  that returns a tuple supplying new ``method`` and ``data`` values::

    class Example:
        def getdata(self):
            method = Image.Transform.EXTENT
            data = (0, 0, 100, 100)
            return method, data
:param data: Extra data to the transformation method.
:param resample: Optional resampling filter.  It can be one of
   :py:data:`Resampling.NEAREST` (use nearest neighbour),
   :py:data:`Resampling.BILINEAR` (linear interpolation in a 2x2
   environment), or :py:data:`Resampling.BICUBIC` (cubic spline
   interpolation in a 4x4 environment). If omitted, or if the image
   has mode "1" or "P", it is set to :py:data:`Resampling.NEAREST`.
   See: :ref:`concept-filters`.
:param fill: If ``method`` is an
  :py:class:`~PIL.Image.ImageTransformHandler` object, this is one of
  the arguments passed to it. Otherwise, it is unused.
:param fillcolor: Optional fill color for the area outside the
   transform in the output image.
:returns: An :py:class:`~PIL.Image.Image` object.
rà