Table of Contents

Method TrySetEncodedData

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

TrySetEncodedData(byte[])

Sets the image encoded data to a MaaImageBuffer.

bool TrySetEncodedData(byte[] data)

Parameters

data byte[]

The image data (PNG).

Returns

bool

true if the image encoded data was set successfully; otherwise, false.

TrySetEncodedData(Stream)

Sets the image encoded data to a MaaImageBuffer.

bool TrySetEncodedData(Stream data)

Parameters

data Stream

The image data (PNG).

Returns

bool

true if the image encoded data was set successfully; otherwise, false.

TrySetEncodedData(ReadOnlySpan<byte>)

Sets the image encoded data to a MaaImageBuffer.

bool TrySetEncodedData(ReadOnlySpan<byte> data)

Parameters

data ReadOnlySpan<byte>

The image data (PNG).

Returns

bool

true if the image encoded data was set successfully; otherwise, false.