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