MCPcopy Create free account
hub / github.com/HelloBush/Java_MHXYdemo / FindColor

Method FindColor

src/pkgDm/Dm2Java.java:1427–1429  ·  view source on GitHub ↗

查找指定区域内的颜色,颜色格式"RRGGBB-DRDGDB",注意,和按键的颜色格式相反 @param x1 区域的左上X坐标 @param y1 区域的左上Y坐标 @param x2 区域的右下X坐标 @param y2 区域的右下Y坐标 @param color 颜色 格式为"RRGGBB-DRDGDB",比如"123456-000000|aabbcc-202020".注意,这里只支持RGB颜色. @param sim 相似度,取值范围0.1-1.0 @param dir 查找方向 0: 从左到右,从上到下 1: 从左到右,从下到上 2: 从右到左,从上到下

(int x1, int y1,int x2,int y2,String color,double sim,int dir,Variant intX,Variant intY)

Source from the content-addressed store, hash-verified

1425 * @return 0:没找到 1:找到
1426 */
1427 public int FindColor(int x1, int y1,int x2,int y2,String color,double sim,int dir,Variant intX,Variant intY){
1428 return Dispatch.callN(dm, "FindColor", new Object[]{x1,y1,x2,y2,color,sim,dir,intX,intY}).getInt();
1429 }
1430
1431 /**
1432 * 查找指定区域内的颜色,颜色格式"RRGGBB-DRDGDB",注意,和按键的颜色格式相反

Callers

nothing calls this directly

Calls 2

callNMethod · 0.95
getIntMethod · 0.45

Tested by

no test coverage detected