Gimpformats Index / Gimpformats / Gimpchannel
Auto-generated documentation for gimpformats.GimpChannel module.
Show source in GimpChannel.py:13
Represents a single channel or mask in a GIMP image.
class GimpChannel(GimpIOBase):
def __init__(
self, parent: GimpIOBase, name: str = "", image: Image.Image | None = None
) -> None: ...Show source in GimpChannel.py:97
Get a textual representation of this object.
def __str__(self) -> str: ...Show source in GimpChannel.py:38
Decode a byte buffer.
databytearray - data to decodeindexint, optional - index to start from. Defaults to 0.
int- pointer
def decode(self, data: bytearray, index: int = 0) -> int: ...Show source in GimpChannel.py:60
Encode this object to a byte buffer.
def encode(self) -> bytearray: ...Show source in GimpChannel.py:101
Get a textual representation of this object.
def full_repr(self, indent: int = 0) -> str: ...Show source in GimpChannel.py:71
Get the compiled image.
@property
def image(self) -> Image.Image | None: ...Show source in GimpChannel.py:78
Set the compiled image.
@image.setter
def image(self, image: Image.Image) -> None: ...Show source in GimpChannel.py:86
Get the image hierarchy.
@property
def imageHierarchy(self) -> GimpImageHierarchy | None: ...