对比多色点 - CmpMultiColor
函数简介
在绑定窗口中对比多色点,检查指定的点阵颜色列表是否与当前屏幕颜色匹配。
接口名称
CmpMultiColor
DLL调用
int CmpMultiColor(long ola, string pointJson, double sim);
参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| ola | 长整数型 | OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。 |
| pointJson | 字符串 | 点阵颜色列表,支持JSON格式或简化字符串格式,详见 点阵颜色列表格式说明 |
| sim | 双精度浮点数 | 相似度阈值,范围 0 ~ 1.0,默认 1.0 |
示例
int result = CmpMultiColor(ola, "10|5|00ff00,20|10|0000ff", 1.0);
if (result == 1) {
// 找到符合条件的颜色点
}
返回值
整数型:1 成功,0 失败。
