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

Method FindStrWithFontE

src/pkgDm/Dm2Java.java:2095–2097  ·  view source on GitHub ↗

同FindStrE,但是不使用SetDict设置的字库,而利用系统自带的字库,速度比FindStrE稍慢 @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 @par

(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

2093 * @return 返回字符串序号以及X和Y坐标,形式如"id|x|y", 比如"0|100|200",没找到时,id和X以及Y均为-1,"-1|-1|-1"
2094 */
2095 public String FindStrWithFontE(int x1,int y1,int x2,int y2,String string,String color_format,double sim,String font_name,int font_size,int flag){
2096 return Dispatch.callN(dm,"FindStrWithFontE",new Object[]{x1,y1,x2,y2,string,color_format,sim,font_name,font_size,flag}).getString();
2097 }
2098 /**
2099 * 同FindStrEx,但是不使用SetDict设置的字库,而利用系统自带的字库,速度比FindStrEx稍慢
2100 * @param x1 区域的左上X坐标

Callers

nothing calls this directly

Calls 2

callNMethod · 0.95
getStringMethod · 0.45

Tested by

no test coverage detected