massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / Pillow / PIL / ImagePalette.pyi
1 from typing import Any
2
3 from .Image import Image
4
5 class ImagePalette:
6     mode: Any
7     rawmode: Any
8     palette: Any
9     colors: Any
10     dirty: Any
11     def __init__(self, mode: str = ..., palette: Any | None = ..., size: int = ...) -> None: ...
12     def copy(self) -> ImagePalette: ...
13     def getdata(self): ...
14     def tobytes(self) -> bytes: ...
15     tostring = tobytes
16     def getcolor(self, color: tuple[int, int, int], image: Image | None = ...) -> int: ...
17     def save(self, fp) -> None: ...
18
19 def raw(rawmode, data): ...
20 def make_linear_lut(black, white): ...
21 def make_gamma_lut(exp): ...
22 def negative(mode: str = ...): ...
23 def random(mode: str = ...): ...
24 def sepia(white: str = ...): ...
25 def wedge(mode: str = ...): ...
26 def load(filename): ...