java.lang.Object
io.github.jspinak.brobot.actions.methods.basicactions.find.compareImages.CompareSize

@Component public class CompareSize extends Object
  • Constructor Details

    • CompareSize

      public CompareSize()
  • Method Details

    • getEnvelopedFirstOrNone

      public List<Pattern> getEnvelopedFirstOrNone(Pattern p1, Pattern p2)
      Returns an empty list if neither image fits in the other. Otherwise, the enveloped pattern is returned first and the enveloping pattern second.
      Parameters:
      p1 - a pattern
      p2 - another pattern
      Returns:
      the enveloped pattern first or an empty list is no pattern can envelop the other.