728x90
반응형
728x170
using System.Windows;
using System.Windows.Forms;
using System.Windows.Interop;
#region 스크린 구하기 - GetScreen(window)
/// <summary>
/// 스크린 구하기
/// </summary>
/// <param name="window">윈도우</param>
/// <returns>스크린</returns>
public Screen GetScreen(Window window)
{
WindowInteropHelper windowInteropHelper = new WindowInteropHelper(window);
Screen screen = Screen.FromHandle(windowInteropHelper.Handle);
return screen;
}
#endregion
728x90
반응형
그리드형(광고전용)
'C# > WPF' 카테고리의 다른 글
[C#/WPF] InputManager 클래스 : 키 이벤트 발생시키기 (0) | 2016.01.24 |
---|---|
[C#/WPF] Keyboard 클래스 : CTRL+C 키 입력 처리하기 (0) | 2016.01.24 |
[C#/WPF] KeyBinding 엘리먼트 : CTRL+X 단축키 사용하기 (0) | 2016.01.24 |
[C#/WPF] CTRL+X 키 입력 처리하기 (0) | 2016.01.24 |
[C#/WPF] Point 클래스 : WinForm Screen 구하기 (0) | 2016.01.20 |
[C#/WPF] Window 클래스 : 윈도우 테두리 제거하기 (0) | 2016.01.20 |
[C#/WPF] JpegBitmapEncoder 클래스 : JPEG 파일 저장하기 (0) | 2015.12.27 |
[C#/WPF] DrawingBrush 엘리먼트 : GeometryDrawing 객체를 사용해 격자 배경 브러시 만들기 (0) | 2015.12.27 |
[C#/WPF] RichTextBox 클래스 : 문서 생성하기 (0) | 2015.12.22 |
[C#/WPF] RichTextBox 클래스 : 텍스트 구하기 (0) | 2015.12.22 |
댓글을 달아 주세요