- UID
- 390967
- 帖子
- 1601
- 主題
- 825
- 精華
- 0
- 積分
- 855
- 楓幣
- 11117
- 威望
- 396
- 存款
- 10100
- 贊助金額
- 1800
- 推廣
- 0
- GP
- 2687
- 閱讀權限
- 150
- 在線時間
- 189 小時
- 註冊時間
- 2023-5-18
- 最後登入
- 2024-11-24
|
- private static Bitmap bmpScreenshot;
- private static Graphics gfxScreenshot;
- bmpScreenshot = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height, System.Drawing.Imaging.PixelFormat.Format32bppArgb);
- gfxScreenshot = Graphics.FromImage(bmpScreenshot);
- gfxScreenshot.CopyFromScreen(Screen.PrimaryScreen.Bounds.X, Screen.PrimaryScreen.Bounds.Y, 0, 0, Screen.PrimaryScreen.Bounds.Size, CopyPixelOperation.SourceCopy);
- bmpScreenshot.Save(@"c:\ScreenShot.png", System.Drawing.Imaging.ImageFormat.Png);
複製代碼 |
|