Method TrySetRawData
- Namespace
 - MaaFramework.Binding.Buffers
 
- Assembly
 - MaaFramework.Binding.Native.dll
 
TrySetRawData(nint, int, int, int)
Sets the image raw data.
public bool TrySetRawData(nint data, int width, int height, int type)Parameters
datanint- 
The image(cv::Mat::data) data.
 widthint- 
The image width.
 heightint- 
The image height.
 typeint- 
The image type.
 
Returns
TrySetRawData(nint, nint, int, int, int)
Sets the image raw data.
public static bool TrySetRawData(nint handle, nint data, int width, int height, int type)Parameters
handlenint- 
The MaaImageBufferHandle.
 datanint- 
The image(cv::Mat::data) data.
 widthint- 
The image width.
 heightint- 
The image height.
 typeint- 
The image type.