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

Method FindMultiColor

libop/com/OpAutomation.cpp:809–819  ·  view source on GitHub ↗

根据指定的多点查找颜色坐标

Source from the content-addressed store, hash-verified

807}
808// 根据指定的多点查找颜色坐标
809STDMETHODIMP 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// 根据指定的多点查找所有颜色坐标
821STDMETHODIMP OpAutomation::FindMultiColorEx(LONG x1, LONG y1, LONG x2, LONG y2, BSTR first_color, BSTR offset_color,
822 DOUBLE sim, LONG dir, BSTR *retstr) {

Callers 1

OpFindMultiColorFunction · 0.45

Calls 1

SetOutValueFunction · 0.85

Tested by

no test coverage detected