| 726 | } |
| 727 | |
| 728 | int 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 | |
| 740 | const 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) { |