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

Method FindStrWithFontEx

src/pkgDm/Dm2Java.java:2115–2117  ·  view source on GitHub ↗

同FindStrEx,但是不使用SetDict设置的字库,而利用系统自带的字库,速度比FindStrEx稍慢 @param x1 区域的左上X坐标 @param y1 区域的左上Y坐标 @param x2 区域的右下X坐标 @param y2 区域的右下Y坐标 @param string 待查找的字符串,可以是字符串组合,比如"长安|洛阳|大雁塔",中间用"|"来分割字符串 @param color_format 颜色格式串, 可以包含换行分隔符,语法是","后加分割字符串. 具体可以查看下面的示例 .注意,RGB和HSV格式都支持. @param sim 相似度,取值范围0.1-1.0 @p

(int x1,int y1,int x2,int y2,String string,String color_format,double sim,String font_name,int font_size,int flag)

Source from the content-addressed store, hash-verified

2113 * 比如"0,100,20|2,30,40" 表示找到了两个,第一个,对应的是序号为0的字符串,坐标是(100,20),第二个是序号为2的字符串,坐标(30,40)<br/>
2114 */
2115 public String FindStrWithFontEx(int x1,int y1,int x2,int y2,String string,String color_format,double sim,String font_name,int font_size,int flag){
2116 return Dispatch.callN(dm,"FindStrWithFontEx",new Object[]{x1,y1,x2,y2,string,color_format,sim,font_name,font_size,flag}).getString();
2117 }
2118
2119 /**
2120 * 获取指定的字库中的字符数量

Callers

nothing calls this directly

Calls 2

callNMethod · 0.95
getStringMethod · 0.45

Tested by

no test coverage detected