Skip to content

Latest commit

 

History

History
442 lines (273 loc) · 9.12 KB

File metadata and controls

442 lines (273 loc) · 9.12 KB

Gimpiobase

Gimpformats Index / Gimpformats / Gimpiobase

Auto-generated documentation for gimpformats.GimpIOBase module.

GimpIOBase

Show source in GimpIOBase.py:37

Signature

class GimpIOBase:
    def __init__(self, parent: Any = None) -> None: ...

GimpIOBase().repr

Show source in GimpIOBase.py:555

Get a textual representation of this object.

Signature

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

GimpIOBase().str

Show source in GimpIOBase.py:551

Get a textual representation of this object.

Signature

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

GimpIOBase()._colormapDecode

Show source in GimpIOBase.py:197

colormapDecode.

Arguments

  • data - can be bytearray or an IO object

decode colormap/palette

Signature

def _colormapDecode(self, data: bytearray | IO, index: int = 0) -> None: ...

GimpIOBase()._guidelinesDecode

Show source in GimpIOBase.py:145

Decode guidelines.

Signature

def _guidelinesDecode(self, data: bytearray) -> None: ...

GimpIOBase()._itemPathDecode

Show source in GimpIOBase.py:155

Decode item path.

Signature

def _itemPathDecode(self, data: bytearray) -> None: ...

GimpIOBase()._parasitesDecode

Show source in GimpIOBase.py:128

Decode list of parasites.

Signature

def _parasitesDecode(self, data: bytearray) -> int: ...

GimpIOBase()._parasitesEncode

Show source in GimpIOBase.py:138

Encode list of parasites.

Signature

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

GimpIOBase()._propertiesDecode

Show source in GimpIOBase.py:517

Decode a list of properties.

Signature

def _propertiesDecode(self, ioBuf: IO) -> int: ...

See also

GimpIOBase()._propertiesEncode

Show source in GimpIOBase.py:531

Encode a list of properties.

uint32 prop_type Type identification uint32 len(payload) size of payload bytes[] payload

Signature

def _propertiesEncode(self, enum: Enum = AllProps) -> bytearray: ...

See also

GimpIOBase()._propertyDecode

Show source in GimpIOBase.py:242

Decode a single property.

Signature

def _propertyDecode(self, prop: int, data: bytearray) -> int: ...

GimpIOBase()._propertyEncode

Show source in GimpIOBase.py:345

Encode a single property.

Signature

def _propertyEncode(self, prop: int) -> bytearray: ...

GimpIOBase()._samplePointsDecode

Show source in GimpIOBase.py:230

Decode a series of points.

Signature

def _samplePointsDecode(self, data: bytearray) -> None: ...

GimpIOBase()._userUnitsDecode

Show source in GimpIOBase.py:224

Decode a set of user-defined measurement units.

Signature

def _userUnitsDecode(self, data: bytearray) -> None: ...

GimpIOBase()._vectorsDecode

Show source in GimpIOBase.py:165

Decode vectors.

Signature

def _vectorsDecode(self, data: bytearray) -> None: ...

GimpIOBase().activeVector

Show source in GimpIOBase.py:179

Get the vector that is currently active.

Signature

@property
def activeVector(self) -> GimpVector: ...

See also

GimpIOBase().doc

Show source in GimpIOBase.py:106

Signature

@property
def doc(self) -> GimpIOBase: ...

GimpIOBase().expanded

Show source in GimpIOBase.py:184

Is the group layer expanded.

Signature

@property
def expanded(self) -> bool: ...

GimpIOBase().expanded

Show source in GimpIOBase.py:189

Is the group layer expanded.

Signature

@expanded.setter
def expanded(self, expanded: bool) -> None: ...

GimpIOBase().full_repr

Show source in GimpIOBase.py:566

Get a textual representation of this object.

Signature

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

GimpIOBase().pointerSize

Show source in GimpIOBase.py:80

Determine the size of the "pointer" datatype based on the document version.

NOTE: prior to version 11, it was 32-bit, since then it is 64-bit, thus supporting larger image files

Signature

@property
def pointerSize(self) -> int: ...

GimpIOBase().root

Show source in GimpIOBase.py:113

Get the root of the file object tree (Which is the same as self.doc).

Signature

@property
def root(self) -> GimpIOBase: ...

GimpIOBase().tattoo

Show source in GimpIOBase.py:118

Gimp nomenclature for the item's unique id.

Signature

@property
def tattoo(self) -> Any | None: ...

GimpIOBase().tattoo

Show source in GimpIOBase.py:123

Gimp nomenclature for the item's unique id.

Signature

@tattoo.setter
def tattoo(self, tattoo: Any | None) -> None: ...

GimpUserUnits

Show source in GimpIOBase.py:643

User-defined measurement units.

Signature

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

GimpUserUnits().str

Show source in GimpIOBase.py:690

Get a textual representation of this object.

Signature

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

GimpUserUnits().decode

Show source in GimpIOBase.py:655

Decode a byte buffer.

Arguments


  • data bytearray - data buffer to decode
  • index int, optional - index within the buffer to start at]. Defaults to 0.

Returns


  • int - offset

Signature

def decode(self, data: bytearray, index: int = 0) -> int: ...

GimpUserUnits().encode

Show source in GimpIOBase.py:678

Convert this object to raw bytearray.

Signature

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

GimpUserUnits().full_repr

Show source in GimpIOBase.py:694

Get a textual representation of this object.

Signature

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

camel_to_pascal_with_spaces

Show source in GimpIOBase.py:32

Signature

def camel_to_pascal_with_spaces(val: str) -> str: ...