Merge pull request #8113 from radarhere/transform

Renamed C transform2 to transform
This commit is contained in:
Hugo van Kemenade 2024-06-08 04:38:33 -06:00 committed by GitHub
commit 5e0fe8f1b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -2883,7 +2883,7 @@ class Image:
if image.mode in ("1", "P"): if image.mode in ("1", "P"):
resample = Resampling.NEAREST 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: def transpose(self, method: Transpose) -> Image:
""" """

View File

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