我想要这个程序,当用户点击应用程序中或之外的东西时,制作屏幕截图并将其作为 jpeg 保存到文件夹
这是我想要将这些选项放入其中的代码:
Imports System.Net.Mail
Public Class Form1
Private Function TakeImage()
Return TakeImage(0, 0, Screen.PrimaryScreen.WorkingArea.Width, Screen.PrimaryScreen.WorkingArea.Height)
End Function
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
PictureBox1.Image = CType(TakeImage(), Image)
End Sub
End Class
顺便说一句,我是 VB.NET 的初学者