MCPcopy Create free account
hub / github.com/WallBreaker2/op / OpFindColorBlock

Function OpFindColorBlock

libop/c_api/op_c_api.cpp:728–738  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

726}
727
728int OP_CALL OpFindColorBlock(op_handle handle, int x1, int y1, int x2, int y2, const wchar_t *color, double sim,
729 int count, int height, int width, int *x, int *y) {
730 out_int(x, -1);
731 out_int(y, -1);
732 return call_ret(handle, [&](op::Op &op, long *ret) {
733 long lx = -1, ly = -1;
734 op.FindColorBlock(x1, y1, x2, y2, safe_text(color), sim, count, height, width, &lx, &ly, ret);
735 out_int(x, lx);
736 out_int(y, ly);
737 });
738}
739
740const wchar_t *OP_CALL OpFindColorBlockEx(op_handle handle, int x1, int y1, int x2, int y2, const wchar_t *color,
741 double sim, int count, int height, int width) {

Callers 1

TESTFunction · 0.85

Calls 4

out_intFunction · 0.85
call_retFunction · 0.85
safe_textFunction · 0.85
FindColorBlockMethod · 0.45

Tested by 1

TESTFunction · 0.68