Table of Contents

Method TrySetValues

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

TrySetValues(int, int, int, int)

Sets values to a MaaRectBuffer.

public bool TrySetValues(int x, int y, int width, int height)

Parameters

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(nint, int, int, int, int)

Sets values to a MaaRectBuffer.

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

Parameters

handle nint

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<nint, bool>)

Sets values to a function using MaaRectBuffer.

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

Parameters

x int

The horizontal coordinate.

y int

The vertical coordinate.

width int

The width.

height int

The height.

readBuffer Func<nint, bool>

The function used to read the values from the buffer.

Returns

bool

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