예제 #1
0
 private bool IsActivePlayer(BitmapExt bmp)
 {
     if (bmp.HasColor(Color.FromArgb(255, 160, 73, 70)))
     {
         return(true);
     }
     return(false);
 }
예제 #2
0
 public override AbstractData Grab()
 {
     this.snapshot = BitmapExt.FromScreen();
     return(new ScreenData(
                this.GrabHandsRectangles(),
                this.GrabCardsRectangles(),
                this.GrabDealerRectangles(),
                this.GrabBetsRectangles(),
                this.GrabActivePlayers()
                ));
 }
예제 #3
0
 private string GetBet(BitmapExt bmp)
 {
     if (bmp == null)
     {
         return("");
     }
     else
     {
         var result = bmp.ToString();
         result = result.Replace('n', '0');
         result = result.Replace('.', ',');
         return(result);
     }
 }