ImageLayerContentProtocol
TypeSource
ImageLayerContentProtocol(*args: Any, **kwargs: Any)
warning
This protocol class is only used as type hints and does not implements any instances in run time.
The protocol of the image layer content.
Arguments
Initialization function is not specified.
Protocol methods
copy
v_1: Self = self.copy()
Create a copy of this instance.
Returns
| Name | Type | |
|---|---|---|
v_1 | Self | The copy of this instance. |
Protocol properties
height
height: int = self.height
The width of the image.
img
img: Image = self.img
The accessible pixel-based image maintained by this instance.
size
size: tuple[int, int] = self.size
The (width, height) tuple of the image.
width
width: int = self.width
The width of the image.