Table of Contents

Interface IMaaImageBuffer

Namespace
MaaFramework.Binding.Buffers
Assembly
MaaFramework.Binding.dll

An interface defining wrapped members for MaaImageBuffer.

public interface IMaaImageBuffer : IMaaBuffer<IMaaImageBuffer>, IMaaDisposable, IDisposable

Implements

Properties

Channels

Gets the image channels.

Height

Gets the image height.

IsEmpty

Gets a value indicates whether the image of the MaaFramework.Binding.Buffers.IMaaImageBuffer is empty.

Type

Gets the type of a image matrix element.

This is an identifier compatible with the CvMat type system, like CV_16SC3 or 16-bit signed 3-channel array, and so on.

Width

Gets the image width.

Methods

GetInfo()

Gets the image info.

TryClear()

Clears the image of the MaaFramework.Binding.Buffers.IMaaImageBuffer.

TryGetEncodedData(out byte[])

Gets the image encoded data from a MaaImageBuffer.

TryGetEncodedData(out Stream)

Gets the image encoded data from a MaaImageBuffer.

TryGetEncodedData(out ReadOnlySpan<byte>)

Gets the image encoded data from a MaaImageBuffer.

TrySetEncodedData(byte[])

Sets the image encoded data to a MaaImageBuffer.

TrySetEncodedData(Stream)

Sets the image encoded data to a MaaImageBuffer.

TrySetEncodedData(ReadOnlySpan<byte>)

Sets the image encoded data to a MaaImageBuffer.