上传备份

wjdr
王兵 12 months ago
parent 8c8b718d5b
commit 19a6845830

@ -383,7 +383,7 @@ public abstract class JMacro {
* @param viewRect * @param viewRect
* @param pic * @param pic
* @param minSimilar * @param minSimilar
* @param fast * @param fast +
* @return * @return
*/ */
public ViewRect findPic(ViewRect viewRect, BufferedImage pic, double minSimilar, boolean fast) { public ViewRect findPic(ViewRect viewRect, BufferedImage pic, double minSimilar, boolean fast) {
@ -430,7 +430,7 @@ public abstract class JMacro {
//中心点 //中心点
boolean cc = ColorUtil.isSimilar(screenData[x - xMin + pic.getWidth() / 2][y - yMin + pic.getHeight() / 2], picData[pic.getWidth() / 2][pic.getHeight() / 2]); boolean cc = ColorUtil.isSimilar(screenData[x - xMin + pic.getWidth() / 2][y - yMin + pic.getHeight() / 2], picData[pic.getWidth() / 2][pic.getHeight() / 2]);
// 五个关键点不一致,则没必要继续比下去 // 五个关键点不一致,则没必要继续比下去
// 但要注意四个顶点中心存在半透明情况,会导致关键点定位不准 // 但要注意四个顶点+中心存在半透明情况,会导致关键点定位不准
if (!lt || !rt || !lb || !rb || !cc) { if (!lt || !rt || !lb || !rb || !cc) {
continue; continue;
} }
@ -803,7 +803,7 @@ public abstract class JMacro {
* 1. * 1.
* 2. * 2.
* 3. * 3.
* *
* *
* *
* @param legends * @param legends
@ -945,7 +945,7 @@ public abstract class JMacro {
* *
* @param rect * @param rect
* @param color :#ffffff * @param color :#ffffff
* @return * @return
*/ */
public boolean hasColorAndClick(ViewRect rect, String... color) { public boolean hasColorAndClick(ViewRect rect, String... color) {
boolean hasColor = hasColor(rect, color); boolean hasColor = hasColor(rect, color);

Loading…
Cancel
Save

Powered by TurnKey Linux.