Method TrySetEncodedData
- Namespace
- MaaFramework.Binding.Buffers
- Assembly
- MaaFramework.Binding.dll
TrySetEncodedData(THandle, byte[])
Sets the image encoded data to a MaaImageBuffer.
public static abstract bool TrySetEncodedData(THandle handle, byte[] data)Parameters
handleTHandle-
The MaaImageBufferHandle.
databyte[]-
The image data (PNG).
Returns
TrySetEncodedData(THandle, Stream)
Sets the image encoded data to a MaaImageBuffer.
public static abstract bool TrySetEncodedData(THandle handle, Stream data)Parameters
handleTHandle-
The MaaImageBufferHandle.
dataStream-
The image data (PNG).
Returns
TrySetEncodedData(THandle, ReadOnlySpan<byte>)
Sets the image encoded data to a MaaImageBuffer.
public static abstract bool TrySetEncodedData(THandle handle, ReadOnlySpan<byte> data)Parameters
handleTHandle-
The MaaImageBufferHandle.
dataReadOnlySpan<byte>-
The image data (PNG).
Returns
TrySetEncodedData(byte[], Func<THandle, bool>)
Sets the image encoded data to a function using MaaRectBuffer.
public static abstract bool TrySetEncodedData(byte[] data, Func<THandle, bool> readBuffer)Parameters
databyte[]-
The image data (PNG).
readBufferFunc<THandle, bool>-
The function used to read the data from the buffer.
Returns
TrySetEncodedData(Stream, Func<THandle, bool>)
Sets the image encoded data to a function using MaaRectBuffer.
public static abstract bool TrySetEncodedData(Stream data, Func<THandle, bool> readBuffer)Parameters
dataStream-
The image data (PNG).
readBufferFunc<THandle, bool>-
The function used to read the data from the buffer.
Returns
TrySetEncodedData(ReadOnlySpan<byte>, Func<THandle, bool>)
Sets the image encoded data to a function using MaaRectBuffer.
public static abstract bool TrySetEncodedData(ReadOnlySpan<byte> data, Func<THandle, bool> readBuffer)Parameters
dataReadOnlySpan<byte>-
The image data (PNG).
readBufferFunc<THandle, bool>-
The function used to read the data from the buffer.