Table of Contents

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

data nint

The image(cv::Mat::data) data.

width int

The image width.

height int

The image height.

type int

The image type.

Returns

bool

true if the image raw data was set successfully; otherwise, false.

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

handle nint

The MaaImageBufferHandle.

data nint

The image(cv::Mat::data) data.

width int

The image width.

height int

The image height.

type int

The image type.

Returns

bool

true if the image raw data was set successfully; otherwise, false.