Gimpformats Index / Gimpformats / Gimpggrgradient
Auto-generated documentation for gimpformats.GimpGgrGradient module.
Show source in GimpGgrGradient.py:122
Gimp color gradient.
See: https://gitlab.gnome.org/GNOME/gimp/blob/master/devel-docs/ggr.txt
class GimpGgrGradient:
def __init__(self, fileName: str | None = None) -> None: ...Show source in GimpGgrGradient.py:196
Get a textual representation of this object.
def __str__(self) -> str: ...Show source in GimpGgrGradient.py:151
Decode a byte buffer.
dataInbytearray - data buffer to decode
RuntimeError- File format error. Magic value mismatch.
def decode(self, dataIn: bytearray | bytes) -> None: ...Show source in GimpGgrGradient.py:177
Encode this to bytearray.
def encode(self) -> bytes: ...Show source in GimpGgrGradient.py:200
Get a textual representation of this object.
def full_repr(self, indent: int = 0) -> str: ...Show source in GimpGgrGradient.py:189
Given a decimal percent (1.0 = 100%) retrieve...
the appropriate color for this point in the gradient.
def getColor(self, percent: float) -> NoReturn: ...Show source in GimpGgrGradient.py:143
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 GimpGgrGradient.py:185
Save this gimp image to a file.
def save(self, tofileName: str | BytesIO) -> None: ...Show source in GimpGgrGradient.py:12
Single segment within a gradient.
class GradientSegment:
def __init__(self) -> None: ...Show source in GimpGgrGradient.py:99
Get a textual representation of this object.
def __str__(self) -> str: ...Show source in GimpGgrGradient.py:51
Decode a byte buffer.
dataInstr - data buffer to decode
RuntimeError- [description]
def decode(self, dataIn: str) -> None: ...Show source in GimpGgrGradient.py:81
Encode this to a string.
def encode(self) -> str: ...Show source in GimpGgrGradient.py:103
Get a textual representation of this object.
def full_repr(self, indent: int = 0) -> str: ...Show source in GimpGgrGradient.py:44
Given a decimal percent (1.0 = 100%) retrieve the appropriate color for this point in the gradient.
def getColor(self, percent: float) -> NoReturn: ...