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

Method Capture

src/pkgDm/Dm2Java.java:1314–1316  ·  view source on GitHub ↗

抓取指定区域(x1, y1, x2, y2)的图像,保存为file(24位位图) @param x1 区域的左上X坐标 @param y1 区域的左上Y坐标 @param x2 区域的右下X坐标 @param y2 区域的右下Y坐标 @param file 保存的文件名,保存的地方一般为SetPath中设置的目录 当然这里也可以指定全路径名. @return 0: 失败 1:成功

(int x1, int y1,int x2,int y2,String file)

Source from the content-addressed store, hash-verified

1312 * @return 0: 失败 1:成功
1313 */
1314 public int Capture(int x1, int y1,int x2,int y2,String file){
1315 return Dispatch.call(dm,"Capture",x1, y1, x2, y2, file).getInt();
1316 }
1317
1318 /**
1319 * 抓取指定区域(x1, y1, x2, y2)的动画,保存为gif格式

Callers 1

GameSeekMethod · 0.80

Calls 2

callMethod · 0.95
getIntMethod · 0.45

Tested by

no test coverage detected