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

Method GetScreenData

src/pkgDm/Dm2Java.java:1702–1704  ·  view source on GitHub ↗

获取指定区域的图像,用二进制数据的方式返回,(不适合按键使用)方便二次开发 @param x1 区域的左上X坐标 @param y1 区域的左上Y坐标 @param x2 区域的右下X坐标 @param y2 区域的右下Y坐标 @return 返回的是指定区域的二进制颜色数据地址,每个颜色是4个字节,表示方式为(00RRGGBB)

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

Source from the content-addressed store, hash-verified

1700 * @return 返回的是指定区域的二进制颜色数据地址,每个颜色是4个字节,表示方式为(00RRGGBB)
1701 */
1702 public int GetScreenData(int x1,int y1,int x2,int y2){
1703 return Dispatch.call(dm,"GetScreenData",x1,y1,x2,y2).getInt();
1704 }
1705
1706 /**
1707 * 转换图片格式为24位BMP格式.

Callers

nothing calls this directly

Calls 2

callMethod · 0.95
getIntMethod · 0.45

Tested by

no test coverage detected