Skip to content

Latest commit

 

History

History
132 lines (83 loc) · 2.7 KB

File metadata and controls

132 lines (83 loc) · 2.7 KB

Gimpchannel

Gimpformats Index / Gimpformats / Gimpchannel

Auto-generated documentation for gimpformats.GimpChannel module.

GimpChannel

Show source in GimpChannel.py:13

Represents a single channel or mask in a GIMP image.

Signature

class GimpChannel(GimpIOBase):
    def __init__(
        self, parent: GimpIOBase, name: str = "", image: Image.Image | None = None
    ) -> None: ...

See also

GimpChannel().str

Show source in GimpChannel.py:97

Get a textual representation of this object.

Signature

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

GimpChannel().decode

Show source in GimpChannel.py:38

Decode a byte buffer.

Arguments


  • data bytearray - data to decode
  • index int, optional - index to start from. Defaults to 0.

Returns


  • int - pointer

Signature

def decode(self, data: bytearray, index: int = 0) -> int: ...

GimpChannel().encode

Show source in GimpChannel.py:60

Encode this object to a byte buffer.

Signature

def encode(self) -> bytearray: ...

GimpChannel().full_repr

Show source in GimpChannel.py:101

Get a textual representation of this object.

Signature

def full_repr(self, indent: int = 0) -> str: ...

GimpChannel().image

Show source in GimpChannel.py:71

Get the compiled image.

Signature

@property
def image(self) -> Image.Image | None: ...

GimpChannel().image

Show source in GimpChannel.py:78

Set the compiled image.

Signature

@image.setter
def image(self, image: Image.Image) -> None: ...

GimpChannel().imageHierarchy

Show source in GimpChannel.py:86

Get the image hierarchy.

Signature

@property
def imageHierarchy(self) -> GimpImageHierarchy | None: ...