class
MutableCompressedImageView2DTwo-dimensional mutable compressed image view
See CompressedImageView2D for more information. The only difference to the non-mutable variant is that it’s possible to modify the image through data.
Special methods
- def __init__(self, arg0: CompressedPixelFormat, arg1: Vector2i, /) -> None
- Construct an empty view
- def __init__(self, arg0: CompressedPixelFormat, arg1: Vector2i, arg2: corrade.containers.MutableArrayView, /) -> None
- Constructor
- def __init__(self, arg0: CompressedImage2D, /) -> None
- Construct a view on an image
- def __init__(self, arg0: MutableCompressedImageView2D, /) -> None
- Construct from any type convertible to an image view
Properties
- data: corrade.containers.MutableArrayView get set
- Raw image data
- format: CompressedPixelFormat get
- Format of compressedpixel data
- owner: object get
- Memory owner
- size: Vector2i get
- Image size
Method documentation
def magnum. MutableCompressedImageView2D. __init__(self,
arg0: MutableCompressedImageView2D, /) -> None
Construct from any type convertible to an image view
Exceptions | |
---|---|
RuntimeError | If trade.ImageData2D.is_compressed is
True |
This function is used to implement implicit conversion from trade.ImageData2D in the trade module.