Gimpformats Index / Gimpformats / Gimpvbrbrush
Auto-generated documentation for gimpformats.GimpVbrBrush module.
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
class GimpVbrBrush:
def __init__(self, fileName: BytesIO | str | None = None) -> None: ...Show source in GimpVbrBrush.py:138
Perform a comparison.
def __eq__(self, other: object) -> bool: ...Show source in GimpVbrBrush.py:129
Get a textual representation of this object.
def __repr__(self) -> str: ...Show source in GimpVbrBrush.py:125
Get a textual representation of this object.
def __str__(self) -> str: ...Show source in GimpVbrBrush.py:54
Decode a byte buffer.
dataIn- data buffer to decode
def decode(self, dataIn: bytearray | bytes) -> None: ...Show source in GimpVbrBrush.py:84
Encode to a raw data stream.
def encode(self) -> bytes: ...Show source in GimpVbrBrush.py:49
Parametric brush converted to a useable PIL image.
@property
def image(self) -> NoReturn: ...Show source in GimpVbrBrush.py:41
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 GimpVbrBrush.py:107
Save this gimp image to a file.
def save(
self, tofileName: BytesIO | str | Path, toExtension: str | None = None
) -> None: ...