public void SetCastableDetectionArea(System.Windows.Rect captureRect) { this.CastableDetectionArea = new Rect( (int)captureRect.X, (int)captureRect.Y, (int)captureRect.Width, (int)captureRect.Height ); }
public void SetCaptureRect(System.Windows.Rect captureRect) { this.CaptureRect = new Rect( (int)captureRect.X, (int)captureRect.Y, (int)captureRect.Width, (int)captureRect.Height ); }