Class MaaImageBuffer
- Namespace
- MaaFramework.Binding.Buffers
- Assembly
- MaaFramework.Binding.Native.dll
A class providing a reference implementation for Maa Image Buffer section of MaaFramework.Binding.Interop.Native.MaaBuffer.
public class MaaImageBuffer : MaaDisposableHandle<nint>, IMaaImageBuffer<nint>, IMaaImageBuffer, IMaaBuffer<nint, IMaaImageBuffer>, IMaaBuffer<IMaaImageBuffer>, IMaaDisposableHandle<nint>, IMaaDisposable, IDisposable, IMaaImageBufferStatic<nint>
Inheritance
Implements
Inherited Members
Constructors
- MaaImageBuffer(nint)
-
Creates a MaaFramework.Binding.Buffers.MaaImageBuffer instance.
- MaaImageBuffer()
-
Creates a MaaFramework.Binding.Buffers.MaaImageBuffer instance.
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.
- ReleaseHandle()
-
When overridden in a derived class, executes the code required to free the handle.
- ToString()
-
Returns a string that represents the current object.
- TryClear()
-
Clears the image of the MaaFramework.Binding.Buffers.IMaaImageBuffer.
- TryCopyTo(nint)
-
Copies all values of the current buffer to the specified buffer.
- TryCopyTo(IMaaImageBuffer)
-
Copies all values of the current buffer to the specified buffer.
- 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.
- TryGetEncodedData(nint, out byte[])
-
Gets the image encoded data from a MaaImageBuffer.
- TryGetEncodedData(nint, out Stream)
-
Gets the image encoded data from a MaaImageBuffer.
- TryGetEncodedData(nint, out ReadOnlySpan<byte>)
-
Gets the image encoded data from a MaaImageBuffer.
- TryGetEncodedData(nint, out nint, out ulong)
-
Gets the image encoded data from a MaaImageBuffer.
- TryGetEncodedData(out byte[], Func<nint, bool>)
-
Gets the image encoded data from a function using MaaRectBuffer.
- TryGetRawData(out nint)
-
Gets the image raw data.
- TryGetRawData(out nint, out int, out int, out int)
-
Gets the image raw data.
- TryGetRawData(nint, out nint)
-
Gets the image raw data.
- TryGetRawData(nint, out nint, out int, out int, out int)
-
Gets the image raw data.
- 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.
- TrySetEncodedData(nint, byte[])
-
Sets the image encoded data to a MaaImageBuffer.
- TrySetEncodedData(nint, Stream)
-
Sets the image encoded data to a MaaImageBuffer.
- TrySetEncodedData(nint, ReadOnlySpan<byte>)
-
Sets the image encoded data to a MaaImageBuffer.
- TrySetEncodedData(nint, nint, ulong)
-
Sets the image encoded data to a MaaImageBuffer.
- TrySetEncodedData(byte[], Func<nint, bool>)
-
Sets the image encoded data to a function using MaaRectBuffer.
- TrySetEncodedData(Stream, Func<nint, bool>)
-
Sets the image encoded data to a function using MaaRectBuffer.
- TrySetEncodedData(ReadOnlySpan<byte>, Func<nint, bool>)
-
Sets the image encoded data to a function using MaaRectBuffer.
- TrySetRawData(nint, int, int, int)
-
Sets the image raw data.
- TrySetRawData(nint, nint, int, int, int)
-
Sets the image raw data.