Skip to content

Latest commit

 

History

History
154 lines (103 loc) · 3 KB

File metadata and controls

154 lines (103 loc) · 3 KB

LayerGroup

Layeredimage Index / Layeredimage / LayerGroup

Auto-generated documentation for layeredimage.layergroup module.

Group

Show source in layergroup.py:124

A representation of an image group.

Signature

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: ...

See also

Group().json

Show source in layergroup.py:172

Get the object as a dict.

Signature

def json(self) -> dict[str, Any]: ...

Layer

Show source in layergroup.py:71

A representation of an image layer.

Signature

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: ...

See also

Layer().json

Show source in layergroup.py:111

Get the object as a dict.

Signature

def json(self) -> dict[str, Any]: ...

LayerGroup

Show source in layergroup.py:11

A representation of an image layer or group.

Signature

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: ...

LayerGroup().repr

Show source in layergroup.py:51

Get the string representation.

Signature

def __repr__(self) -> str: ...

LayerGroup().str

Show source in layergroup.py:55

Get the string representation.

Signature

def __str__(self) -> str: ...

LayerGroup().json

Show source in layergroup.py:59

Get the object as a dict.

Signature

def json(self) -> dict[str, Any]: ...