Skip to content

Latest commit

 

History

History
139 lines (86 loc) · 2.89 KB

File metadata and controls

139 lines (86 loc) · 2.89 KB

Gimpvbrbrush

Gimpformats Index / Gimpformats / Gimpvbrbrush

Auto-generated documentation for gimpformats.GimpVbrBrush module.

GimpVbrBrush

Show source in GimpVbrBrush.py:12

Pure python implementation of the gimp vbr brush format.

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

Signature

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

GimpVbrBrush().eq

Show source in GimpVbrBrush.py:138

Perform a comparison.

Signature

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

GimpVbrBrush().repr

Show source in GimpVbrBrush.py:129

Get a textual representation of this object.

Signature

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

GimpVbrBrush().str

Show source in GimpVbrBrush.py:125

Get a textual representation of this object.

Signature

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

GimpVbrBrush().decode

Show source in GimpVbrBrush.py:54

Decode a byte buffer.

Arguments

  • dataIn - data buffer to decode

Signature

def decode(self, dataIn: bytearray | bytes) -> None: ...

GimpVbrBrush().encode

Show source in GimpVbrBrush.py:84

Encode to a raw data stream.

Signature

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

GimpVbrBrush().image

Show source in GimpVbrBrush.py:49

Parametric brush converted to a useable PIL image.

Signature

@property
def image(self) -> NoReturn: ...

GimpVbrBrush().load

Show source in GimpVbrBrush.py:41

Load a gimp file.

Arguments

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

Signature

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

GimpVbrBrush().save

Show source in GimpVbrBrush.py:107

Save this gimp image to a file.

Signature

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