MCPcopy Create free account
hub / github.com/MaaXYZ/MaaFramework / screencap

Function screencap

tools/NodeTest/main.cpp:30–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30MaaBool screencap(void* trans_arg, /* out */ MaaImageBuffer* buffer)
31{
32 auto img = cv::imread("test.png");
33 MaaImageBufferSetRawData(buffer, img.data, img.cols, img.rows, img.type());
34 return true;
35}
36
37int main([[maybe_unused]] int argc, char** argv)
38{

Callers 3

screencapMethod · 0.85
run_nextMethod · 0.85
runMethod · 0.85

Calls 1

MaaImageBufferSetRawDataFunction · 0.85

Tested by

no test coverage detected