Skip to content

Latest commit

 

History

History
130 lines (80 loc) · 2.72 KB

File metadata and controls

130 lines (80 loc) · 2.72 KB

Gimpgpbbrush

Gimpformats Index / Gimpformats / Gimpgpbbrush

Auto-generated documentation for gimpformats.GimpGpbBrush module.

GimpGpbBrush

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

Signature

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

GimpGpbBrush().repr

Show source in GimpGpbBrush.py:75

Get a textual representation of this object.

Signature

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

GimpGpbBrush().str

Show source in GimpGpbBrush.py:71

Get a textual representation of this object.

Signature

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

GimpGpbBrush().decode

Show source in GimpGpbBrush.py:44

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 | bytes, index: int = 0) -> int: ...

GimpGpbBrush().encode

Show source in GimpGpbBrush.py:60

Encode this object to bytearray.

Signature

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

GimpGpbBrush().full_repr

Show source in GimpGpbBrush.py:82

Get a textual representation of this object.

Signature

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

GimpGpbBrush().load

Show source in GimpGpbBrush.py:36

Load a gimp file.

Arguments

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

Signature

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

GimpGpbBrush().save

Show source in GimpGpbBrush.py:67

Save this gimp image to a file.

Signature

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