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

Method FetchWord

libop/com/OpAutomation.cpp:1069–1076  ·  view source on GitHub ↗

根据指定的范围,以及指定的颜色描述,提取点阵信息,类似于大漠工具里的单独提取

Source from the content-addressed store, hash-verified

1067
1068// 根据指定的范围,以及指定的颜色描述,提取点阵信息,类似于大漠工具里的单独提取
1069STDMETHODIMP OpAutomation::FetchWord(LONG x1, LONG y1, LONG x2, LONG y2, BSTR color, BSTR word, BSTR *ret_str) {
1070 wstring s;
1071 obj.FetchWord(x1, y1, x2, y2, color, word, s);
1072 CComBSTR newstr;
1073 newstr.Append(s.data());
1074 newstr.CopyTo(ret_str);
1075 return S_OK;
1076}
1077
1078STDMETHODIMP OpAutomation::FetchWordEx(LONG x1, LONG y1, LONG x2, LONG y2, BSTR color, DOUBLE sim, BSTR word,
1079 BSTR *ret_str) {

Callers 1

OpFetchWordFunction · 0.45

Calls 2

CopyToMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected