C#/소스
-
[C#SC] SaveScreen, CaptureScreenC#/소스 2025. 1. 23. 11:04
width, height 값은 라이브러리 클래스에서는 호출이 안 됨. 그래서 전달인자로 줘서 set 스크린샷 찍음.앞에 떠있는 창 public static void SaveScreen(double x, double y, double width, double height) { int ix, iy, iw, ih; ix = Convert.ToInt32(x); iy = Convert.ToInt32(y); iw = Convert.ToInt32(width); ih = Convert.ToInt32(height); try { Bitmap myImage = new Bitmap(iw, ih); Graphics gr1 = Graphics.FromImage(myImage); IntPtr dc1 = g..