mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-24 00:46:16 +03:00
Renamed transform2 to transform
This commit is contained in:
parent
5bacce9dc2
commit
985e605381
|
@ -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:
|
||||
"""
|
||||
|
|
|
@ -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},
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user