728x90
반응형
728x170
using System;
using System.Windows.Forms;
#region WinForm Screen 구하기 - GetScreen(point)
/// <summary>
/// WinForm Screen 구하기
/// </summary>
/// <param name="point">WPF 포인트</param>
/// <returns>WinForm Screen</returns>
public Screen GetScreen(System.Windows.Point point)
{
int sourceX = (int)Math.Round(point.X);
int sourceY = (int)Math.Round(point.Y);
Screen screen = Screen.FromPoint(new System.Drawing.Point(sourceX, sourceY));
return screen;
}
#endregion
728x90
반응형
그리드형(광고전용)
'C# > WPF' 카테고리의 다른 글
[C#/WPF] ScrollViewer 클래스 : ScrollChanged 이벤트를 사용해 그리드 컨트롤 흉내내기 (0) | 2016.02.03 |
---|---|
[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] Window 클래스 : 스크린 구하기 (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 |
댓글을 달아 주세요