查找指定区域内的所有颜色块, 颜色格式"RRGGBB-DRDGDB", 注意, 和按键的颜色格式相反
| 872 | } |
| 873 | // 查找指定区域内的所有颜色块, 颜色格式"RRGGBB-DRDGDB", 注意, 和按键的颜色格式相反 |
| 874 | STDMETHODIMP 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)的颜色 |
| 886 | STDMETHODIMP OpAutomation::GetColor(LONG x, LONG y, BSTR *ret) { |
| 887 | wstring s; |
no test coverage detected