Layeredimage Index / Layeredimage / LayerGroup
Auto-generated documentation for layeredimage.layergroup module.
Show source in layergroup.py:124
A representation of an image group.
class Group(LayerGroup):
def __init__(
self,
name: str,
layers: list[Layer],
dimensions: tuple[int, int] | None = None,
offsets: tuple[int, int] = (0, 0),
opacity: float = 1.0,
visible: bool = True,
blendmode: BlendType = BlendType.NORMAL,
) -> None: ...Show source in layergroup.py:172
Get the object as a dict.
def json(self) -> dict[str, Any]: ...Show source in layergroup.py:71
A representation of an image layer.
class Layer(LayerGroup):
def __init__(
self,
name: str,
image: Image.Image,
dimensions: tuple[int, int] | None = None,
offsets: tuple[int, int] = (0, 0),
opacity: float = 1.0,
visible: bool = True,
blendmode: BlendType = BlendType.NORMAL,
) -> None: ...Show source in layergroup.py:111
Get the object as a dict.
def json(self) -> dict[str, Any]: ...Show source in layergroup.py:11
A representation of an image layer or group.
class LayerGroup:
def __init__(
self,
name: str,
dimensions: tuple[int, int],
offsets: tuple[int, int] = (0, 0),
opacity: float = 1.0,
visible: bool = True,
blendmode: BlendType = BlendType.NORMAL,
**kwargs: dict[str, Any]
) -> None: ...Show source in layergroup.py:51
Get the string representation.
def __repr__(self) -> str: ...Show source in layergroup.py:55
Get the string representation.
def __str__(self) -> str: ...Show source in layergroup.py:59
Get the object as a dict.
def json(self) -> dict[str, Any]: ...