# Stubs for PIL.ImageDraw2 (Python 3)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any, Optional
class Pen:
color: Any = ...
width: Any = ...
def __init__(self, color: Any, width: int = ..., opacity: int = ...) -> None: ...
class Brush:
color: Any = ...
def __init__(self, color: Any, opacity: int = ...) -> None: ...
class Font:
color: Any = ...
font: Any = ...
def __init__(self, color: Any, file: Any, size: int = ...) -> None: ...
class Draw:
draw: Any = ...
image: Any = ...
transform: Any = ...
def __init__(self, image: Any, size: Optional[Any] = ..., color: Optional[Any] = ...) -> None: ...
def flush(self): ...
def render(self, op: Any, xy: Any, pen: Any, brush: Optional[Any] = ...) -> None: ...
def settransform(self, offset: Any) -> None: ...
def arc(self, xy: Any, start: Any, end: Any, *options: Any) -> None: ...
def chord(self, xy: Any, start: Any, end: Any, *options: Any) -> None: ...
def ellipse(self, xy: Any, *options: Any) -> None: ...
def line(self, xy: Any, *options: Any) -> None: ...
def pieslice(self, xy: Any, start: Any, end: Any, *options: Any) -> None: ...
def polygon(self, xy: Any, *options: Any) -> None: ...
def rectangle(self, xy: Any, *options: Any) -> None: ...
def symbol(self, xy: Any, symbol: Any, *options: Any) -> None: ...
def text(self, xy: Any, text: Any, font: Any) -> None: ...
def textsize(self, text: Any, font: Any): ...