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

Function OpFindMultiColor

libop/c_api/op_c_api.cpp:674–682  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

672}
673
674int OP_CALL OpFindMultiColor(op_handle handle, int x1, int y1, int x2, int y2, const wchar_t *first_color,
675 const wchar_t *offset_color, double sim, int dir, int *x, int *y) {
676 return call_ret(handle, [&](op::Op &op, long *ret) {
677 long lx = 0, ly = 0;
678 op.FindMultiColor(x1, y1, x2, y2, safe_text(first_color), safe_text(offset_color), sim, dir, &lx, &ly, ret);
679 out_int(x, lx);
680 out_int(y, ly);
681 });
682}
683
684const wchar_t *OP_CALL OpFindMultiColorEx(op_handle handle, int x1, int y1, int x2, int y2,
685 const wchar_t *first_color, const wchar_t *offset_color, double sim,

Callers

nothing calls this directly

Calls 4

call_retFunction · 0.85
safe_textFunction · 0.85
out_intFunction · 0.85
FindMultiColorMethod · 0.45

Tested by

no test coverage detected