PsImageResource
PsImageResource
General
PsImageResource és una classe en FOSS per Python.
Representa un recurs d’imatge decodificat.
Propietats: bits_per_component, color_space, data, decode, filter, filter_params, i 6 més.
Propietats
| Nom | Tipus de productes | Accés | Descripció |
|---|---|---|---|
image_id | str | Llegir/Escriure | Obté o fixa l’identificació d’imatge. |
data | bytes | Llegir/Escriure | Obté o fixa les dades. |
width | int | Llegir/Escriure | Obté o fixa la largura. |
height | int | Llegir/Escriure | Obté o fixa l’altura. |
bits_per_component | int | Llegir/Escriure | Obté o fixa els bits per component. |
color_space | str | Llegir/Escriure | Obté o fixa l’espai de color. |
interpolate | bool | Llegir/Escriure | Obté o fixa l’interpolat. |
mask | bool | Llegir/Escriure | Obté o posa la màscara. |
filter | `str | None` | Llegir/Escriure |
filter_params | `dict | None` | Llegir/Escriure |
decode | `tuple[float, …] | None` | Llegir/Escriure |
mask_polarity | bool | Llegir/Escriure | Obté o fixa la polaritat de la màscara. |