예제 #1
0
 private void CheckForHit(FramePieceInfo CurrentPieceInfo)
 {
     if (CurrentPieceInfo.FrameBytes.Length == CurrentPieceInfo.TotalLength)
     {
         Debug.WriteLine("Hit");
         Application.Current.Dispatcher.Invoke(() =>
         {
             try
             {
                 OnFrameChange(new ImageBrush(Screenshot.ByteToBitMapSource(CurrentPieceInfo.FrameBytes)));
             }
             catch (Exception ex)
             {
             }
         });
     }
 }