Method TryGetValues
- Namespace
- MaaFramework.Binding.Buffers
- Assembly
- MaaFramework.Binding.Native.dll
TryGetValues(out int, out int, out int, out int)
Gets values from a MaaRectBuffer.
public bool TryGetValues(out int x, out int y, out int width, out int height)
Parameters
x
int-
The horizontal coordinate.
y
int-
The vertical coordinate.
width
int-
The width.
height
int-
The height.
Returns
TryGetValues(nint, out int, out int, out int, out int)
Gets values from a MaaRectBuffer.
public static bool TryGetValues(nint handle, out int x, out int y, out int width, out 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
TryGetValues(out int, out int, out int, out int, Func<nint, bool>)
Gets values from a function using MaaRectBuffer.
public static bool TryGetValues(out int x, out int y, out int width, out int height, Func<nint, bool> writeBuffer)
Parameters
x
int-
The horizontal coordinate.
y
int-
The vertical coordinate.
width
int-
The width.
height
int-
The height.
writeBuffer
Func<nint, bool>-
The function used to write the values to the buffer.