Spaces:
Sleeping
Sleeping
import datetime | |
import sys | |
from typing import Literal, SupportsFloat, TypedDict | |
littlecms_version: str | None | |
_Tuple3f = tuple[float, float, float] | |
_Tuple2x3f = tuple[_Tuple3f, _Tuple3f] | |
_Tuple3x3f = tuple[_Tuple3f, _Tuple3f, _Tuple3f] | |
class _IccMeasurementCondition(TypedDict): | |
observer: int | |
backing: _Tuple3f | |
geo: str | |
flare: float | |
illuminant_type: str | |
class _IccViewingCondition(TypedDict): | |
illuminant: _Tuple3f | |
surround: _Tuple3f | |
illuminant_type: str | |
class CmsProfile: | |
def rendering_intent(self) -> int: ... | |
def creation_date(self) -> datetime.datetime | None: ... | |
def copyright(self) -> str | None: ... | |
def target(self) -> str | None: ... | |
def manufacturer(self) -> str | None: ... | |
def model(self) -> str | None: ... | |
def profile_description(self) -> str | None: ... | |
def screening_description(self) -> str | None: ... | |
def viewing_condition(self) -> str | None: ... | |
def version(self) -> float: ... | |
def icc_version(self) -> int: ... | |
def attributes(self) -> int: ... | |
def header_flags(self) -> int: ... | |
def header_manufacturer(self) -> str: ... | |
def header_model(self) -> str: ... | |
def device_class(self) -> str: ... | |
def connection_space(self) -> str: ... | |
def xcolor_space(self) -> str: ... | |
def profile_id(self) -> bytes: ... | |
def is_matrix_shaper(self) -> bool: ... | |
def technology(self) -> str | None: ... | |
def colorimetric_intent(self) -> str | None: ... | |
def perceptual_rendering_intent_gamut(self) -> str | None: ... | |
def saturation_rendering_intent_gamut(self) -> str | None: ... | |
def red_colorant(self) -> _Tuple2x3f | None: ... | |
def green_colorant(self) -> _Tuple2x3f | None: ... | |
def blue_colorant(self) -> _Tuple2x3f | None: ... | |
def red_primary(self) -> _Tuple2x3f | None: ... | |
def green_primary(self) -> _Tuple2x3f | None: ... | |
def blue_primary(self) -> _Tuple2x3f | None: ... | |
def media_white_point_temperature(self) -> float | None: ... | |
def media_white_point(self) -> _Tuple2x3f | None: ... | |
def media_black_point(self) -> _Tuple2x3f | None: ... | |
def luminance(self) -> _Tuple2x3f | None: ... | |
def chromatic_adaptation(self) -> tuple[_Tuple3x3f, _Tuple3x3f] | None: ... | |
def chromaticity(self) -> _Tuple3x3f | None: ... | |
def colorant_table(self) -> list[str] | None: ... | |
def colorant_table_out(self) -> list[str] | None: ... | |
def intent_supported(self) -> dict[int, tuple[bool, bool, bool]] | None: ... | |
def clut(self) -> dict[int, tuple[bool, bool, bool]] | None: ... | |
def icc_measurement_condition(self) -> _IccMeasurementCondition | None: ... | |
def icc_viewing_condition(self) -> _IccViewingCondition | None: ... | |
def is_intent_supported(self, intent: int, direction: int, /) -> int: ... | |
class CmsTransform: | |
def apply(self, id_in: int, id_out: int) -> int: ... | |
def profile_open(profile: str, /) -> CmsProfile: ... | |
def profile_frombytes(profile: bytes, /) -> CmsProfile: ... | |
def profile_tobytes(profile: CmsProfile, /) -> bytes: ... | |
def buildTransform( | |
input_profile: CmsProfile, | |
output_profile: CmsProfile, | |
in_mode: str, | |
out_mode: str, | |
rendering_intent: int = 0, | |
cms_flags: int = 0, | |
/, | |
) -> CmsTransform: ... | |
def buildProofTransform( | |
input_profile: CmsProfile, | |
output_profile: CmsProfile, | |
proof_profile: CmsProfile, | |
in_mode: str, | |
out_mode: str, | |
rendering_intent: int = 0, | |
proof_intent: int = 0, | |
cms_flags: int = 0, | |
/, | |
) -> CmsTransform: ... | |
def createProfile( | |
color_space: Literal["LAB", "XYZ", "sRGB"], color_temp: SupportsFloat = 0.0, / | |
) -> CmsProfile: ... | |
if sys.platform == "win32": | |
def get_display_profile_win32(handle: int = 0, is_dc: int = 0, /) -> str | None: ... | |