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

Method FindStrWithFont

src/pkgDm/Dm2Java.java:2076–2078  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

2074 * @return 返回字符串的索引 没找到返回-1, 比如"长安|洛阳",若找到长安,则返回0
2075 */
2076 public int FindStrWithFont(int x1,int y1,int x2,int y2,String string,String color_format,double sim,String font_name,int font_size,int flag,Variant intX,Variant intY){
2077 return Dispatch.callN(dm,"FindStrWithFont",new Object[]{x1,y1,x2,y2,string,color_format,sim,font_name,font_size,flag,intX,intY}).getInt();
2078 }
2079
2080 /**
2081 * 同FindStrE,但是不使用SetDict设置的字库,而利用系统自带的字库,速度比FindStrE稍慢

Callers

nothing calls this directly

Calls 2

callNMethod · 0.95
getIntMethod · 0.45

Tested by

no test coverage detected