Gimpformats Index / Gimpformats / Gimpgihbrushset
Auto-generated documentation for gimpformats.GimpGihBrushSet module.
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
class GimpGihBrushSet:
def __init__(self, fileName: str | None = None) -> None: ...Show source in GimpGihBrushSet.py:99
Get a textual representation of this object.
def __str__(self) -> str: ...Show source in GimpGihBrushSet.py:50
Decode a byte buffer.
databytearray - data buffer to decodeindexint, optional - index within the buffer to start at. Defaults to 0.
int- offset
def decode(self, data: bytearray | bytes, index: int = 0) -> int: ...Show source in GimpGihBrushSet.py:81
Encode this object to bytearray.
def encode(self) -> bytearray: ...Show source in GimpGihBrushSet.py:103
Get a textual representation of this object.
def full_repr(self, indent: int = 0) -> str: ...Show source in GimpGihBrushSet.py:42
Load a gimp file.
fileName- can be a file name or a file-like object
def load(self, fileName: BytesIO | str) -> None: ...Show source in GimpGihBrushSet.py:95
Save this gimp image to a file.
def save(self, tofileName: str) -> None: ...