Skip to content

Latest commit

 

History

History
187 lines (118 loc) · 4.12 KB

File metadata and controls

187 lines (118 loc) · 4.12 KB

Gimpimagelevel

Gimpformats Index / Gimpformats / Gimpimagelevel

Auto-generated documentation for gimpformats.GimpImageLevel module.

GimpImageLevel

Show source in GimpImageLevel.py:17

Gets packed pixels from a gimp image.

This represents a single level in an imageHierarchy

The level structure for the first level is laid out as follows:

uint32 width Width of the pixel array uint32 height Height of the pixel array ,----------------- Repeat for each of the ceil(width/64)*ceil(height/64) tiles | pointer tptr Pointer to tile data `-- pointer 0 Zero marks the end of the array of tile pointers.

Signature

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

See also

GimpImageLevel().repr

Show source in GimpImageLevel.py:310

Get a textual representation of this object.

Signature

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

GimpImageLevel().str

Show source in GimpImageLevel.py:306

Get a textual representation of this object.

Signature

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

GimpImageLevel()._encodeRLE

Show source in GimpImageLevel.py:174

Encode image to RLE image data.

Signature

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

GimpImageLevel()._imgToTiles

Show source in GimpImageLevel.py:271

Break an image into a series of tiles, each<=64x64.

Signature

def _imgToTiles(self, image: Image.Image) -> list[Image.Image]: ...

GimpImageLevel().bpp

Show source in GimpImageLevel.py:251

Get bpp.

Signature

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

GimpImageLevel().decode

Show source in GimpImageLevel.py:40

Decode a byte buffer.

Arguments

  • data - data buffer to decode
  • index - index within the buffer to start at

Signature

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

GimpImageLevel().encode

Show source in GimpImageLevel.py:84

Encode this object to a byte buffer.

Signature

def encode(self, offset: int = 0) -> bytearray: ...

GimpImageLevel().image

Show source in GimpImageLevel.py:282

Get a final, compiled image.

Signature

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

GimpImageLevel().image

Show source in GimpImageLevel.py:298

Signature

@image.setter
def image(self, image: Image.Image) -> None: ...

GimpImageLevel().mode

Show source in GimpImageLevel.py:256

Get mode.

Signature

@property
def mode(self) -> str: ...

GimpImageLevel().tiles

Show source in GimpImageLevel.py:262

Get tiles.

Signature

@property
def tiles(self) -> list[Image.Image]: ...