mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-24 17:06:16 +03:00
Merge pull request #8113 from radarhere/transform
Renamed C transform2 to transform
This commit is contained in:
commit
5e0fe8f1b8
|
@ -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:
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -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},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user