2016-07-11 2 views
0

WPF를 사용하여 kinect 응용 프로그램을 개발 중입니다. 이제 실제 데스크톱 화면 해상도를 가져와 랩톱 화면을 캡처 할 수 있도록 영역을 확장 할 수 있어야합니다. PrimaryScreenWidth, PrimaryScreenHeight, FullScreenHeight 및 모든 것을 시도했지만 그 중 아무도 실제 해상도를 제공하지 않습니다. 예를 들어, 내가 1920 * 1080이면, 위의 필드는 저에게 다른 값을 줄 것입니다.wpf에서 실제 바탕 화면 해상도를 얻는 방법은 무엇입니까?

C# WPF에서 실제 바탕 화면 해상도를 얻는 방법을 궁금합니다.

미리 감사드립니다.

답변

2

그냥이 사용

System.Windows.SystemParameters.PrimaryScreenWidth 
System.Windows.SystemParameters.PrimaryScreenHeight 

나이 :

System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width 
System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height 
관련 문제