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

Method GetAveRGB

src/pkgDm/Dm2Java.java:1636–1638  ·  view source on GitHub ↗

获取范围(x1,y1,x2,y2)颜色的均值,返回格式"RRGGBB" @param x1 左上角X @param y1 左上角Y @param x2 右下角X @param y2 右下角Y @return 颜色字符串

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

Source from the content-addressed store, hash-verified

1634 * @return 颜色字符串
1635 */
1636 public String GetAveRGB(int x1,int y1,int x2,int y2){
1637 return Dispatch.call(dm,"GetAveRGB",x1,y1,x2,y2).getString();
1638 }
1639
1640 /**
1641 * 获取(x,y)的颜色,颜色返回格式"RRGGBB",注意,和按键的颜色格式相反

Callers

nothing calls this directly

Calls 2

callMethod · 0.95
getStringMethod · 0.45

Tested by

no test coverage detected