Welcome to Python-flavored Magnum! Please note that, while already being rather stable, this functionality is still considered experimental and some APIs might get changed without preserving full backwards compatibility.

magnum.CompressedImage2D class

Two-dimensional compressed image

An owning counterpart to CompressedImageView2D / MutableCompressedImageView2D. Holds its own data buffer, thus doesn’t have an equivalent to CompressedImageView2D.owner. The data view allows mutable access. Implicitly convertible to CompressedImageView2D / MutableCompressedImageView2D, so all APIs consuming image views work with this type as well.

Special methods

def __init__(self, /) -> None
Construct an image placeholder

Properties

data: corrade.containers.MutableArrayView get
Raw image data
format: CompressedPixelFormat get
Format of compressed pixel data
size: Vector2i get
Image size