Skip to content

Latest commit

 

History

History
120 lines (74 loc) · 2.65 KB

File metadata and controls

120 lines (74 loc) · 2.65 KB

Gimpgihbrushset

Gimpformats Index / Gimpformats / Gimpgihbrushset

Auto-generated documentation for gimpformats.GimpGihBrushSet module.

GimpGihBrushSet

Show source in GimpGihBrushSet.py:17

Gimp Image Pipe Format.

The gih format is use to store a series of brushes, and some extra info for how to use them.

See: https://gitlab.gnome.org/GNOME/gimp/blob/master/devel-docs/gih.txt

Signature

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

GimpGihBrushSet().str

Show source in GimpGihBrushSet.py:99

Get a textual representation of this object.

Signature

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

GimpGihBrushSet().decode

Show source in GimpGihBrushSet.py:50

Decode a byte buffer.

Arguments


  • data bytearray - data buffer to decode
  • index int, optional - index within the buffer to start at. Defaults to 0.

Returns


  • int - offset

Signature

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

GimpGihBrushSet().encode

Show source in GimpGihBrushSet.py:81

Encode this object to bytearray.

Signature

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

GimpGihBrushSet().full_repr

Show source in GimpGihBrushSet.py:103

Get a textual representation of this object.

Signature

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

GimpGihBrushSet().load

Show source in GimpGihBrushSet.py:42

Load a gimp file.

Arguments

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

Signature

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

GimpGihBrushSet().save

Show source in GimpGihBrushSet.py:95

Save this gimp image to a file.

Signature

def save(self, tofileName: str) -> None: ...