(self, transform, resample_algorithm=nearest, resize_canvas=True)
return self._copy(pixels)
Returns a copy of this image transformed by the given
        AffineTransform.
Returns a copy of this image transformed by the given
        AffineTransform.
Returns a copy of this image transformed by the given AffineTransform .
def affine(self, transform, resample_algorithm=nearest, resize_canvas=True):
        """
        Returns a copy of this image transformed by the given
        AffineTransform.
        """
        pixels = resample_algorithm.affine(
            self,
            transform,
            resize_canvas=resize_canvas,
        )
        return self._copy(pixels)
def affine ( self , transform , resample_algorithm = nearest , resize_canvas = True ) : pixels = resample_algorithm . affine ( self , transform , resize_canvas = resize_canvas , ) return self . _copy ( pixels )