Files
@ 947b8267652e
Branch filter:
Location: light9/stubs/PIL/Image.pyi
947b8267652e
5.6 KiB
text/plain
upgrade to a py.typed version of rx
Ignore-this: 9a158a868a37a85bf300522320e1e5b7
Ignore-this: 9a158a868a37a85bf300522320e1e5b7
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 | # Stubs for PIL.Image (Python 3)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
import __builtin__
from typing import Any, Optional
logger: Any
class DecompressionBombWarning(RuntimeWarning): ...
class _imaging_not_installed:
def __getattr__(self, id: Any) -> None: ...
MAX_IMAGE_PIXELS: Any
builtins = __builtin__
USE_CFFI_ACCESS: Any
HAS_CFFI: bool
def isImageType(t: Any): ...
NONE: int
FLIP_LEFT_RIGHT: int
FLIP_TOP_BOTTOM: int
ROTATE_90: int
ROTATE_180: int
ROTATE_270: int
TRANSPOSE: int
AFFINE: int
EXTENT: int
PERSPECTIVE: int
QUAD: int
MESH: int
NEAREST: int
BOX: int
BILINEAR: int
LINEAR: int
HAMMING: int
BICUBIC: int
CUBIC: int
LANCZOS: int
ANTIALIAS: int
ORDERED: int
RASTERIZE: int
FLOYDSTEINBERG: int
WEB: int
ADAPTIVE: int
MEDIANCUT: int
MAXCOVERAGE: int
FASTOCTREE: int
LIBIMAGEQUANT: int
NORMAL: int
SEQUENCE: int
CONTAINER: int
DEFAULT_STRATEGY: Any
FILTERED: Any
HUFFMAN_ONLY: Any
RLE: Any
FIXED: Any
ID: Any
OPEN: Any
MIME: Any
SAVE: Any
SAVE_ALL: Any
EXTENSION: Any
MODES: Any
def getmodebase(mode: Any): ...
def getmodetype(mode: Any): ...
def getmodebandnames(mode: Any): ...
def getmodebands(mode: Any): ...
def preinit() -> None: ...
def init(): ...
def coerce_e(value: Any): ...
class _E:
data: Any = ...
def __init__(self, data: Any) -> None: ...
def __add__(self, other: Any): ...
def __mul__(self, other: Any): ...
class Image:
format: Any = ...
format_description: Any = ...
im: Any = ...
mode: str = ...
size: Any = ...
palette: Any = ...
info: Any = ...
category: Any = ...
readonly: int = ...
pyaccess: Any = ...
def __init__(self) -> None: ...
@property
def width(self): ...
@property
def height(self): ...
def __enter__(self): ...
def __exit__(self, *args: Any) -> None: ...
def close(self) -> None: ...
def __eq__(self, other: Any): ...
def __ne__(self, other: Any): ...
@property
def __array_interface__(self): ...
def tobytes(self, encoder_name: str = ..., *args: Any): ...
def tostring(self, *args: Any, **kw: Any) -> None: ...
def tobitmap(self, name: str = ...): ...
def frombytes(self, data: Any, decoder_name: str = ..., *args: Any) -> None: ...
def fromstring(self, *args: Any, **kw: Any) -> None: ...
def load(self): ...
def verify(self) -> None: ...
def convert(self, mode: Optional[Any] = ..., matrix: Optional[Any] = ..., dither: Optional[Any] = ..., palette: Any = ..., colors: int = ...): ...
def quantize(self, colors: int = ..., method: Optional[Any] = ..., kmeans: int = ..., palette: Optional[Any] = ...): ...
def copy(self): ...
__copy__: Any = ...
def crop(self, box: Optional[Any] = ...): ...
def draft(self, mode: Any, size: Any) -> None: ...
def filter(self, filter: Any): ...
def getbands(self): ...
def getbbox(self): ...
def getcolors(self, maxcolors: int = ...): ...
def getdata(self, band: Optional[Any] = ...): ...
def getextrema(self): ...
def getim(self): ...
def getpalette(self): ...
def getpixel(self, xy: Any): ...
def getprojection(self): ...
def histogram(self, mask: Optional[Any] = ..., extrema: Optional[Any] = ...): ...
def offset(self, xoffset: Any, yoffset: Optional[Any] = ...) -> None: ...
def paste(self, im: Any, box: Optional[Any] = ..., mask: Optional[Any] = ...) -> None: ...
def point(self, lut: Any, mode: Optional[Any] = ...): ...
def putalpha(self, alpha: Any) -> None: ...
def putdata(self, data: Any, scale: float = ..., offset: float = ...) -> None: ...
def putpalette(self, data: Any, rawmode: str = ...) -> None: ...
def putpixel(self, xy: Any, value: Any): ...
def resize(self, size: Any, resample: Any = ...): ...
def rotate(self, angle: Any, resample: Any = ..., expand: int = ..., center: Optional[Any] = ..., translate: Optional[Any] = ...): ...
encoderinfo: Any = ...
encoderconfig: Any = ...
def save(self, fp: Any, format: Optional[Any] = ..., **params: Any) -> None: ...
def seek(self, frame: Any) -> None: ...
def show(self, title: Optional[Any] = ..., command: Optional[Any] = ...) -> None: ...
def split(self): ...
def tell(self): ...
def thumbnail(self, size: Any, resample: Any = ...) -> None: ...
def transform(self, size: Any, method: Any, data: Optional[Any] = ..., resample: Any = ..., fill: int = ...): ...
def transpose(self, method: Any): ...
def effect_spread(self, distance: Any): ...
def toqimage(self): ...
def toqpixmap(self): ...
class ImagePointHandler: ...
class ImageTransformHandler: ...
def new(mode: Any, size: Any, color: int = ...): ...
def frombytes(mode: Any, size: Any, data: Any, decoder_name: str = ..., *args: Any): ...
def fromstring(*args: Any, **kw: Any) -> None: ...
def frombuffer(mode: Any, size: Any, data: Any, decoder_name: str = ..., *args: Any): ...
def fromarray(obj: Any, mode: Optional[Any] = ...): ...
def fromqimage(im: Any): ...
def fromqpixmap(im: Any): ...
def open(fp: Any, mode: str = ...): ...
def alpha_composite(im1: Any, im2: Any): ...
def blend(im1: Any, im2: Any, alpha: Any): ...
def composite(image1: Any, image2: Any, mask: Any): ...
def eval(image: Any, *args: Any): ...
def merge(mode: Any, bands: Any): ...
def register_open(id: Any, factory: Any, accept: Optional[Any] = ...) -> None: ...
def register_mime(id: Any, mimetype: Any) -> None: ...
def register_save(id: Any, driver: Any) -> None: ...
def register_save_all(id: Any, driver: Any) -> None: ...
def register_extension(id: Any, extension: Any) -> None: ...
def effect_mandelbrot(size: Any, extent: Any, quality: Any): ...
def effect_noise(size: Any, sigma: Any): ...
|