Canvas¶
- class ez_pil.canvas.Canvas(size=None, width=0, height=0, color=0)¶
Canvas class.
- Parameters:
size (
tuple[int,int] |None) – Size of image, by default None.width (
int) – Width of image, by default None.height (
int) – Height of image, by default None.color (
int|str|tuple[int,int,int] |tuple[int,int,int,int]) – Color of image, by default None.
- Raises:
ValueError – When either
sizeorwidth and heightis not a provided