Method TryGetValues
- Namespace
- MaaFramework.Binding.Buffers
- Assembly
- MaaFramework.Binding.dll
TryGetValues(THandle, out int, out int, out int, out int)
Gets values from a MaaRectBuffer.
public static abstract bool TryGetValues(THandle handle, out int x, out int y, out int width, out int height)Parameters
handleTHandle-
The MaaRectBufferHandle.
xint-
The horizontal coordinate.
yint-
The vertical coordinate.
widthint-
The width.
heightint-
The height.
Returns
TryGetValues(out int, out int, out int, out int, Func<THandle, bool>)
Gets values from a function using MaaRectBuffer.
public static abstract bool TryGetValues(out int x, out int y, out int width, out int height, Func<THandle, bool> writeBuffer)Parameters
xint-
The horizontal coordinate.
yint-
The vertical coordinate.
widthint-
The width.
heightint-
The height.
writeBufferFunc<THandle, bool>-
The function used to write the values to the buffer.