init
This commit is contained in:
commit
38355d2442
9083 changed files with 1225834 additions and 0 deletions
35
.venv/lib/python3.8/site-packages/pygame/image.pyi
Normal file
35
.venv/lib/python3.8/site-packages/pygame/image.pyi
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
from typing import List, Literal, Tuple, Union
|
||||
|
||||
from pygame.bufferproxy import BufferProxy
|
||||
from pygame.surface import Surface
|
||||
|
||||
from ._common import _FileArg
|
||||
|
||||
_BufferStyle = Union[BufferProxy, bytes, bytearray, memoryview]
|
||||
_to_string_format = Literal[
|
||||
"P", "RGB", "RGBX", "RGBA", "ARGB", "RGBA_PREMULT", "ARGB_PREMULT"
|
||||
]
|
||||
_from_buffer_format = Literal["P", "RGB", "BGR", "RGBX", "RGBA", "ARGB"]
|
||||
_from_string_format = Literal["P", "RGB", "RGBX", "RGBA", "ARGB"]
|
||||
|
||||
def load(filename: _FileArg, namehint: str = "") -> Surface: ...
|
||||
def save(surface: Surface, filename: _FileArg, namehint: str = "") -> None: ...
|
||||
def get_sdl_image_version() -> Union[None, Tuple[int, int, int]]: ...
|
||||
def get_extended() -> bool: ...
|
||||
def tostring(
|
||||
surface: Surface, format: _to_string_format, flipped: bool = False
|
||||
) -> str: ...
|
||||
def fromstring(
|
||||
string: str,
|
||||
size: Union[List[int], Tuple[int, int]],
|
||||
format: _from_string_format,
|
||||
flipped: bool = False,
|
||||
) -> Surface: ...
|
||||
def frombuffer(
|
||||
bytes: _BufferStyle,
|
||||
size: Union[List[int], Tuple[int, int]],
|
||||
format: _from_buffer_format,
|
||||
) -> Surface: ...
|
||||
def load_basic(filename: _FileArg) -> Surface: ...
|
||||
def load_extended(filename: _FileArg, namehint: str = "") -> Surface: ...
|
||||
def save_extended(surface: Surface, filename: _FileArg, namehint: str = "") -> None: ...
|
||||
Loading…
Add table
Add a link
Reference in a new issue