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

Method GetColorNum

src/pkgDm/Dm2Java.java:1680–1682  ·  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 @return 颜色数量

(int x1,int y1,int x2,int y2,String color,double sim)

Source from the content-addressed store, hash-verified

1678 * @return 颜色数量
1679 */
1680 public int GetColorNum(int x1,int y1,int x2,int y2,String color,double sim){
1681 return Dispatch.call(dm,"GetColorNum",x1, y1, x2, y2, color, sim).getInt();
1682 }
1683
1684 /**
1685 * 获取指定图片的尺寸,如果指定的图片已经被加入缓存,则从缓存中获取信息.

Callers

nothing calls this directly

Calls 2

callMethod · 0.95
getIntMethod · 0.45

Tested by

no test coverage detected