Skip to content

Latest commit

 

History

History
223 lines (136 loc) · 4.72 KB

File metadata and controls

223 lines (136 loc) · 4.72 KB

Gimpggrgradient

Gimpformats Index / Gimpformats / Gimpggrgradient

Auto-generated documentation for gimpformats.GimpGgrGradient module.

GimpGgrGradient

Show source in GimpGgrGradient.py:122

Gimp color gradient.

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

Signature

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

GimpGgrGradient().str

Show source in GimpGgrGradient.py:196

Get a textual representation of this object.

Signature

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

GimpGgrGradient().decode

Show source in GimpGgrGradient.py:151

Decode a byte buffer.

Arguments


  • dataIn bytearray - data buffer to decode

Raises


  • RuntimeError - File format error. Magic value mismatch.

Signature

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

GimpGgrGradient().encode

Show source in GimpGgrGradient.py:177

Encode this to bytearray.

Signature

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

GimpGgrGradient().full_repr

Show source in GimpGgrGradient.py:200

Get a textual representation of this object.

Signature

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

GimpGgrGradient().getColor

Show source in GimpGgrGradient.py:189

Given a decimal percent (1.0 = 100%) retrieve...

the appropriate color for this point in the gradient.

Signature

def getColor(self, percent: float) -> NoReturn: ...

GimpGgrGradient().load

Show source in GimpGgrGradient.py:143

Load a gimp file.

Arguments

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

Signature

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

GimpGgrGradient().save

Show source in GimpGgrGradient.py:185

Save this gimp image to a file.

Signature

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

GradientSegment

Show source in GimpGgrGradient.py:12

Single segment within a gradient.

Signature

class GradientSegment:
    def __init__(self) -> None: ...

GradientSegment().str

Show source in GimpGgrGradient.py:99

Get a textual representation of this object.

Signature

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

GradientSegment().decode

Show source in GimpGgrGradient.py:51

Decode a byte buffer.

Arguments


  • dataIn str - data buffer to decode

Raises


  • RuntimeError - [description]

Signature

def decode(self, dataIn: str) -> None: ...

GradientSegment().encode

Show source in GimpGgrGradient.py:81

Encode this to a string.

Signature

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

GradientSegment().full_repr

Show source in GimpGgrGradient.py:103

Get a textual representation of this object.

Signature

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

GradientSegment().getColor

Show source in GimpGgrGradient.py:44

Given a decimal percent (1.0 = 100%) retrieve the appropriate color for this point in the gradient.

Signature

def getColor(self, percent: float) -> NoReturn: ...