根据指定的多点查找颜色坐标
| 807 | } |
| 808 | // 根据指定的多点查找颜色坐标 |
| 809 | STDMETHODIMP OpAutomation::FindMultiColor(LONG x1, LONG y1, LONG x2, LONG y2, BSTR first_color, BSTR offset_color, |
| 810 | DOUBLE sim, LONG dir, VARIANT *x, VARIANT *y, LONG *ret) { |
| 811 | if (!x || !y || !ret) |
| 812 | return E_POINTER; |
| 813 | |
| 814 | SetOutValue(ret, 0L); |
| 815 | x->vt = y->vt = VT_I4; |
| 816 | obj.FindMultiColor(x1, y1, x2, y2, first_color, offset_color, sim, dir, &x->lVal, &y->lVal, ret); |
| 817 | |
| 818 | return S_OK; |
| 819 | } |
| 820 | // 根据指定的多点查找所有颜色坐标 |
| 821 | STDMETHODIMP OpAutomation::FindMultiColorEx(LONG x1, LONG y1, LONG x2, LONG y2, BSTR first_color, BSTR offset_color, |
| 822 | DOUBLE sim, LONG dir, BSTR *retstr) { |
no test coverage detected