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

Method FindColorBlockEx

libop/com/OpAutomation.cpp:874–884  ·  view source on GitHub ↗

查找指定区域内的所有颜色块, 颜色格式"RRGGBB-DRDGDB", 注意, 和按键的颜色格式相反

Source from the content-addressed store, hash-verified

872}
873// 查找指定区域内的所有颜色块, 颜色格式"RRGGBB-DRDGDB", 注意, 和按键的颜色格式相反
874STDMETHODIMP OpAutomation::FindColorBlockEx(LONG x1, LONG y1, LONG x2, LONG y2, BSTR color, DOUBLE sim, LONG count,
875 LONG height, LONG width, BSTR *retstr) {
876 std::wstring s;
877 obj.FindColorBlockEx(x1, y1, x2, y2, color, sim, count, height, width, s);
878 CComBSTR newstr;
879 HRESULT hr;
880 newstr.Append(s.data());
881 hr = newstr.CopyTo(retstr);
882
883 return S_OK;
884}
885// 获取(x,y)的颜色
886STDMETHODIMP OpAutomation::GetColor(LONG x, LONG y, BSTR *ret) {
887 wstring s;

Callers 1

OpFindColorBlockExFunction · 0.45

Calls 2

CopyToMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected