2021-05-19 18:25:13 +02:00
|
|
|
from PIL import Image # type: ignore
|
2021-07-06 23:58:32 +02:00
|
|
|
from typing import Optional
|
|
|
|
|
|
|
|
from ..types import Color, Matrix
|
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,
|
2021-07-06 23:58:32 +02:00
|
|
|
single_threaded: bool = ...,
|
|
|
|
enable_aa: bool = ...,
|
2021-05-19 18:25:13 +02:00
|
|
|
) -> Image.Image:
|
|
|
|
...
|