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
xint-
The horizontal coordinate.
yint-
The vertical coordinate.
widthint-
The width.
heightint-
The height.
Returns
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
handlenint-
The MaaRectBufferHandle.
xint-
The horizontal coordinate.
yint-
The vertical coordinate.
widthint-
The width.
heightint-
The height.
Returns
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
xint-
The horizontal coordinate.
yint-
The vertical coordinate.
widthint-
The width.
heightint-
The height.
readBufferFunc<nint, bool>-
The function used to read the values from the buffer.