比较指定坐标点(x,y)的颜色 @param x X坐标 @param y Y坐标 @param color 颜色字符串,可以支持偏色,多色,例如 "ffffff-202020|000000-000000" 这个表示白色偏色为202020,和黑色偏色为000000.颜色最多支持10种颜色组合. 注意,这里只支持RGB颜色. @param sim 相似度(0.1-1.0) @return 0: 颜色匹配 1: 颜色不匹配
(int x,int y,String color,double sim)
| 1382 | * @return 0: 颜色匹配 1: 颜色不匹配 |
| 1383 | */ |
| 1384 | public int CmpColor(int x,int y,String color,double sim){ |
| 1385 | return Dispatch.call(dm,"CmpColor",x,y,color,sim).getInt(); |
| 1386 | } |
| 1387 | |
| 1388 | /** |
| 1389 | * 开启图色调试模式,此模式会稍许降低图色和文字识别的速度.默认不开启. |