Table of Contents

Class MaaImage

Namespace
MaaFramework.Binding
Assembly
MaaFramework.Binding.dll

A non-generic sealed class used to wrap MaaFramework.Binding.Buffers.IMaaImageBuffer.

public sealed class MaaImage : IMaaDisposable, IDisposable

Inheritance

Implements

Inherited Members

Constructors

MaaImage(IMaaImageBuffer)

A non-generic sealed class used to wrap MaaFramework.Binding.Buffers.IMaaImageBuffer.

Properties

Buffer

Gets the IMaaImageBuffer.

IsInvalid

Gets a value indicating whether the unmanaged resources from MaaFramework are invalid, when overridden in a derived class.

IsStateless

Gets a value indicating whether the current instance is stateless.

ThrowOnInvalid

Gets a value indicating whether an System.ObjectDisposedException is thrown when the current instance is invalid but still called.

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

GetInfo()

Gets the image info.

Load<T>(Stream)

Creates a new instance of the MaaFramework.Binding.MaaImage class from the given stream.

Load<T>(string)

Creates a new instance of the MaaFramework.Binding.MaaImage class from the given file.

Load<T>(ReadOnlySpan<byte>)

Creates a new instance of the MaaFramework.Binding.MaaImage class from the given span.

Load(IMaaImageBuffer)

Creates a new instance of the MaaFramework.Binding.MaaImage class from the given buffer.

Save(Stream)

Saves this MaaFramework.Binding.MaaImage to the specified stream.

Save(string)

Saves this MaaFramework.Binding.MaaImage to the specified file.

Save(IMaaImageBuffer)

Saves this MaaFramework.Binding.MaaImage to the specified buffer.

ToString()

Returns a string that represents the current object.

TryCache()

Caches the image data from the MaaFramework.Binding.Buffers.IMaaImageBuffer.