Renamed transform2 to transform

This commit is contained in:
Andrew Murray 2024-06-08 19:06:46 +10:00
parent 5bacce9dc2
commit 985e605381
2 changed files with 3 additions and 3 deletions

View File

@ -2883,7 +2883,7 @@ class Image:
if image.mode in ("1", "P"):
resample = Resampling.NEAREST
self.im.transform2(box, image.im, method, data, resample, fill)
self.im.transform(box, image.im, method, data, resample, fill)
def transpose(self, method: Transpose) -> Image:
"""

View File

@ -2028,7 +2028,7 @@ im_setmode(ImagingObject *self, PyObject *args) {
}
static PyObject *
_transform2(ImagingObject *self, PyObject *args) {
_transform(ImagingObject *self, PyObject *args) {
static const char *wrong_number = "wrong number of matrix entries";
Imaging imOut;
@ -3647,7 +3647,7 @@ static struct PyMethodDef methods[] = {
{"resize", (PyCFunction)_resize, METH_VARARGS},
{"reduce", (PyCFunction)_reduce, METH_VARARGS},
{"transpose", (PyCFunction)_transpose, METH_VARARGS},
{"transform2", (PyCFunction)_transform2, METH_VARARGS},
{"transform", (PyCFunction)_transform, METH_VARARGS},
{"isblock", (PyCFunction)_isblock, METH_NOARGS},