コード例 #1
0
 /// <summary> Resize the preview when the PreviewWindow is resized </summary>
 protected void OnPreviewWindowResize(object sender, EventArgs e)
 {
     // Position video window in client rect of owner window.
     VideoWindow?.SetWindowPosition(0, 0,
                                    (int)(PreviewWindow.ActualWidth * Scale),
                                    (int)(PreviewWindow.ActualHeight * Scale)); //-70
 }
コード例 #2
0
ファイル: CaptureWebcam.cs プロジェクト: koen24/screentogif
 /// <summary> Resize the preview when the PreviewWindow is resized </summary>
 protected void OnPreviewWindowResize(object sender, EventArgs e)
 {
     if (VideoWindow != null)
     {
         // Position video window in client rect of owner window
         VideoWindow.SetWindowPosition(0, 0, (int)PreviewWindow.Width, (int)PreviewWindow.Height - 70);
     }
 }