获取指定区域的颜色数量,颜色格式"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)
| 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 | * 获取指定图片的尺寸,如果指定的图片已经被加入缓存,则从缓存中获取信息. |