VB.NET截图方法

Dim pointLeftSoure As New Point(Me.Left, Me.Top)
Dim pointLeftDestination As New Point(-1, -30)
Dim sizeBackImage As New Size(Me.Width, Me.Height)
Dim imgpnlLock As New Bitmap(Me.Width, Me.Height)
Using g As Graphics = Graphics.FromImage(imgpnlLock)
    g.CopyFromScreen(pointLeftSoure, pointLeftDestination, sizeBackImage)
    pnlEditor.BackgroundImage = imgpnlLock
End Using

猜你喜欢

转载自blog.csdn.net/qq_18301257/article/details/82730894