查找指定区域内的所有颜色
| 789 | } |
| 790 | // 查找指定区域内的所有颜色 |
| 791 | STDMETHODIMP 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 | // 查找指定区域内的颜色数量 |
| 802 | STDMETHODIMP OpAutomation::GetColorNum(LONG x1, LONG y1, LONG x2, LONG y2, BSTR color, DOUBLE sim, LONG *ret) { |
| 803 | wstring s; |
no test coverage detected