.Net Core how to printscreen?
时间: 2023-07-17 07:55:57 浏览: 102
asp.net core mvc 搭建的企业网站示例
5星 · 资源好评率100%
In .NET Core, you can capture a screenshot programmatically using the `System.Drawing` namespace. Here's an example of how to capture a screenshot in .NET Core:
```csharp
using System;
using System.Drawing;
using System.Drawing.Imaging;
class Program
{
static void Main()
{
// Create a Bitmap object with the screen dimensions
Bitmap bitmap = new Bitmap(Screen.PrimaryScreen.Bounds.Width,***
阅读全文