Table of Contents

Method TrySetValues

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

TrySetValues(THandle, int, int, int, int)

Sets values to a MaaRectBuffer.

public static abstract bool TrySetValues(THandle handle, int x, int y, int width, int height)

Parameters

handle THandle

The MaaRectBufferHandle.

x int

The horizontal coordinate.

y int

The vertical coordinate.

width int

The width.

height int

The height.

Returns

bool

true if the operation was executed successfully; otherwise, false.

TrySetValues(int, int, int, int, Func<THandle, bool>)

Sets values to a function using MaaRectBuffer.

public static abstract bool TrySetValues(int x, int y, int width, int height, Func<THandle, bool> readBuffer)

Parameters

x int

The horizontal coordinate.

y int

The vertical coordinate.

width int

The width.

height int

The height.

readBuffer Func<THandle, bool>

The function used to read the values from the buffer.

Returns

bool

true if the operation was executed successfully; otherwise, false.