Gimpformats Index / Gimpformats / Gimpimagelevel
Auto-generated documentation for gimpformats.GimpImageLevel module.
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.
class GimpImageLevel(GimpIOBase):
def __init__(self, parent: Any) -> None: ...Show source in GimpImageLevel.py:310
Get a textual representation of this object.
def __repr__(self) -> str: ...Show source in GimpImageLevel.py:306
Get a textual representation of this object.
def __str__(self) -> str: ...Show source in GimpImageLevel.py:174
Encode image to RLE image data.
def _encodeRLE(self, data: bytearray, bpp: int) -> bytearray: ...Show source in GimpImageLevel.py:271
Break an image into a series of tiles, each<=64x64.
def _imgToTiles(self, image: Image.Image) -> list[Image.Image]: ...Show source in GimpImageLevel.py:251
Get bpp.
@property
def bpp(self) -> int: ...Show source in GimpImageLevel.py:40
Decode a byte buffer.
data- data buffer to decodeindex- index within the buffer to start at
def decode(self, data: bytearray | bytes | None, index: int = 0) -> int: ...Show source in GimpImageLevel.py:84
Encode this object to a byte buffer.
def encode(self, offset: int = 0) -> bytearray: ...Show source in GimpImageLevel.py:282
Get a final, compiled image.
@property
def image(self) -> Image.Image: ...Show source in GimpImageLevel.py:298
@image.setter
def image(self, image: Image.Image) -> None: ...Show source in GimpImageLevel.py:256
Get mode.
@property
def mode(self) -> str: ...Show source in GimpImageLevel.py:262
Get tiles.
@property
def tiles(self) -> list[Image.Image]: ...