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.CompressedImageView1D class

One-dimensional compressed image view

See CompressedImageView2D for more information.

Special methods

def __init__(self, arg0: CompressedPixelFormat, arg1: int, /) -> None
Construct an empty view
def __init__(self, arg0: CompressedPixelFormat, arg1: int, arg2: corrade.containers.ArrayView, /) -> None
Constructor
def __init__(self, arg0: CompressedImage1D, /) -> None
Construct a view on an image
def __init__(self, arg0: CompressedImageView1D, /) -> None
Construct from any type convertible to an image view
def __init__(self, arg0: MutableCompressedImageView1D, /) -> None
Construct from a mutable view

Properties

data: corrade.containers.ArrayView get set
Raw image data
format: CompressedPixelFormat get
Format of compressedpixel data
owner: object get
Memory owner
size: int get
Image size

Method documentation

def magnum.CompressedImageView1D.__init__(self, arg0: CompressedImageView1D, /) -> None

Construct from any type convertible to an image view

Exceptions
RuntimeError If trade.ImageData1D.is_compressed is False

This function is used to implement implicit conversion from trade.ImageData1D in the trade module.