Gimpformats Index / Gimpformats / Gimpgpbbrush
Auto-generated documentation for gimpformats.GimpGpbBrush module.
Show source in GimpGpbBrush.py:14
Pure python implementation of the OLD gimp gpb brush format.
See: https://gitlab.gnome.org/GNOME/gimp/blob/master/devel-docs/vbr.txt
class GimpGpbBrush:
def __init__(self, fileName: BytesIO | str) -> None: ...Show source in GimpGpbBrush.py:75
Get a textual representation of this object.
def __repr__(self) -> str: ...Show source in GimpGpbBrush.py:71
Get a textual representation of this object.
def __str__(self) -> str: ...Show source in GimpGpbBrush.py:44
Decode a byte buffer.
databytearray - data to decodeindexint, optional - index to start from. Defaults to 0.
int- pointer
def decode(self, data: bytearray | bytes, index: int = 0) -> int: ...Show source in GimpGpbBrush.py:60
Encode this object to bytearray.
def encode(self) -> bytearray: ...Show source in GimpGpbBrush.py:82
Get a textual representation of this object.
def full_repr(self, indent: int = 0) -> str: ...Show source in GimpGpbBrush.py:36
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 GimpGpbBrush.py:67
Save this gimp image to a file.
def save(self, tofileName: str | BytesIO) -> None: ...