MCPcopy Index your code
hub / github.com/python-pillow/Pillow / transform

Method transform

src/PIL/Image.py:2561–2563  ·  view source on GitHub ↗
(x: float, y: float, matrix: list[float])

Source from the content-addressed store, hash-verified

2559 ]
2560
2561 def transform(x: float, y: float, matrix: list[float]) -> tuple[float, float]:
2562 a, b, c, d, e, f = matrix
2563 return a * x + b * y + c, d * x + e * y + f
2564
2565 matrix[2], matrix[5] = transform(
2566 -center[0] - post_trans[0], -center[1] - post_trans[1], matrix

Callers 15

rotateMethod · 0.95
test_pathFunction · 0.45
test_transformFunction · 0.45
test_transform_with_wrapFunction · 0.45
test_basicFunction · 0.45
test_sanityMethod · 0.45
test_infoMethod · 0.45
test_paletteMethod · 0.45
test_extentMethod · 0.45
test_quadMethod · 0.45
test_fillMethod · 0.45
test_meshMethod · 0.45

Calls 5

convertMethod · 0.95
newFunction · 0.85
__transformerMethod · 0.80
getdataMethod · 0.45
copyMethod · 0.45

Tested by 15

test_pathFunction · 0.36
test_transformFunction · 0.36
test_transform_with_wrapFunction · 0.36
test_basicFunction · 0.36
test_sanityMethod · 0.36
test_infoMethod · 0.36
test_paletteMethod · 0.36
test_extentMethod · 0.36
test_quadMethod · 0.36
test_fillMethod · 0.36
test_meshMethod · 0.36
opMethod · 0.36