Skip to content

How does pillow implement Transform.QUAD and Transform.MESH #8449

Answered by Yay295
kyrollosyanny asked this question in Q&A
Discussion options

You must be logged in to vote

transform2 is written in C, and was renamed to transform a few months ago.

{"transform", (PyCFunction)_transform, METH_VARARGS},

Pillow/src/_imaging.c

Lines 2010 to 2072 in 7097a9a

static PyObject *
_transform(ImagingObject *self, PyObject *args) {
static const char *wrong_number = "wrong number of matrix entries";
Imaging imOut;
Py_ssize_t n;
double *a;
ImagingObject *imagep;
int x0, y0, x1, y1;
int method;
PyObject *data;
int filter = IMAGING_TRANSFORM_NEAREST;
int fill = 1;
if (!PyArg_ParseTuple(
args,
"(iiii)O!iO|ii",
&x0,
&y0

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kyrollosyanny
Comment options

Answer selected by kyrollosyanny
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants