Skip to content

Latest commit

 

History

History
139 lines (85 loc) · 2.94 KB

File metadata and controls

139 lines (85 loc) · 2.94 KB

Gimpgplpalette

Gimpformats Index / Gimpformats / Gimpgplpalette

Auto-generated documentation for gimpformats.GimpGplPalette module.

GimpGplPalette

Show source in GimpGplPalette.py:11

Pure python implementation of the gimp gpl palette format.

Signature

class GimpGplPalette:
    def __init__(self, fileName: BytesIO | str | None = None) -> None: ...

GimpGplPalette().eq

Show source in GimpGplPalette.py:110

Perform a comparison.

Signature

def __eq__(self, other: object) -> bool: ...

GimpGplPalette().repr

Show source in GimpGplPalette.py:87

Get a textual representation of this object.

Signature

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

GimpGplPalette().str

Show source in GimpGplPalette.py:83

Get a textual representation of this object.

Signature

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

GimpGplPalette().decode

Show source in GimpGplPalette.py:37

Decode a byte buffer.

Arguments


  • data str - data buffer to decode

Raises


  • RuntimeError - File format error. Magic value mismatch.

Signature

def decode(self, data: str) -> None: ...

GimpGplPalette().encode

Show source in GimpGplPalette.py:66

Encode to a raw data stream.

Signature

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

GimpGplPalette().full_repr

Show source in GimpGplPalette.py:95

Get a textual representation of this object.

Signature

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

GimpGplPalette().load

Show source in GimpGplPalette.py:29

Load a gimp file.

Arguments

  • fileName - can be a file name or a file-like object

Signature

def load(self, fileName: BytesIO | str) -> None: ...

GimpGplPalette().save

Show source in GimpGplPalette.py:79

Save this gimp image to a file.

Signature

def save(self, fileName: str | BytesIO) -> None: ...