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

Method FindPicEx

src/pkgDm/Dm2Java.java:1599–1601  ·  view source on GitHub ↗

查找指定区域内的图片,位图必须是24位色格式,支持透明色,当图像上下左右4个顶点的颜色一样时,则这个颜色将作为透明色处理. 这个函数可以查找多个图片,并且返回所有找到的图像的坐标. @param x1 区域的左上X坐标 @param y1 区域的左上Y坐标 @param x2 区域的右下X坐标 @param y2 区域的右下Y坐标 @param pic_name 图片名,可以是多个图片,比如"test.bmp|test2.bmp|test3.bmp" @param delta_color 颜色色偏比如"203040" 表示RGB的色偏分别是20 30 40 (这里是16进制表示) @param

(int x1,int y1,int x2,int y2,String pic_name,String delta_color,double sim,int dir)

Source from the content-addressed store, hash-verified

1597 * 比如"0,100,20|2,30,40" 表示找到了两个,第一个,对应的图片是图像序号为0的图片,坐标是(100,20),第二个是序号为2的图片,坐标(30,40)(由于内存限制,返回的图片数量最多为1500个左右)
1598 */
1599 public String FindPicEx(int x1,int y1,int x2,int y2,String pic_name,String delta_color,double sim,int dir){
1600 return Dispatch.call(dm,"FindPicEx",x1, y1, x2, y2, pic_name, delta_color,sim, dir).getString();
1601 }
1602
1603 /**
1604 * 释放指定的图片,此函数不必要调用,除非你想节省内存

Callers

nothing calls this directly

Calls 2

callMethod · 0.95
getStringMethod · 0.45

Tested by

no test coverage detected