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

Method FindColorEx

libop/com/OpAutomation.cpp:791–800  ·  view source on GitHub ↗

查找指定区域内的所有颜色

Source from the content-addressed store, hash-verified

789}
790// 查找指定区域内的所有颜色
791STDMETHODIMP OpAutomation::FindColorEx(LONG x1, LONG y1, LONG x2, LONG y2, BSTR color, DOUBLE sim, LONG dir,
792 BSTR *retstr) {
793 wstring s;
794 obj.FindColorEx(x1, y1, x2, y2, color, sim, dir, s);
795
796 CComBSTR newstr;
797 newstr.Append(s.data());
798 newstr.CopyTo(retstr);
799 return S_OK;
800}
801// 查找指定区域内的颜色数量
802STDMETHODIMP OpAutomation::GetColorNum(LONG x1, LONG y1, LONG x2, LONG y2, BSTR color, DOUBLE sim, LONG *ret) {
803 wstring s;

Callers 1

OpFindColorExFunction · 0.45

Calls 2

CopyToMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected