2021-05-19 18:25:13 +02:00
|
|
|
from PIL import Image # type: ignore
|
2021-05-23 22:37:18 +02:00
|
|
|
from typing import Optional, Tuple
|
2021-05-19 18:25:13 +02:00
|
|
|
|
2021-05-30 00:11:15 +02:00
|
|
|
from ..types import Color, Matrix, Point
|
2021-05-19 18:25:13 +02:00
|
|
|
|
|
|
|
def affine_composite(
|
|
|
|
img: Image.Image,
|
2021-05-22 03:31:42 +02:00
|
|
|
add_color: Color,
|
2021-05-19 18:25:13 +02:00
|
|
|
mult_color: Color,
|
|
|
|
transform: Matrix,
|
2021-05-23 22:37:18 +02:00
|
|
|
mask: Optional[Image.Image],
|
2021-05-19 18:25:13 +02:00
|
|
|
blendfunc: int,
|
|
|
|
texture: Image.Image,
|
|
|
|
single_threaded: bool = False,
|
2021-05-30 06:16:25 +02:00
|
|
|
enable_aa: bool = True,
|
2021-05-19 18:25:13 +02:00
|
|
|
) -> Image.Image:
|
|
|
|
...
|