如何通过VB .Net捕获鼠标指针?

时间:2017-01-14 10:41:17

标签: vb.net

我已经在vb .net中编写代码来截取屏幕截图。它捕获屏幕,但它不捕获鼠标指针。我的代码在

之下
Private Sub Take_Clip()

    Dim graph As Graphics
    Dim bnd As Rectangle = My.Computer.Screen.Bounds

    Dim SS As Bitmap
    SS = New Bitmap(bnd.Width, bnd.Height, Imaging.PixelFormat.Format32bppArgb)
    graph = Graphics.FromImage(SS)
    graph.CopyFromScreen(0, 0, 0, 0, bnd.Size)

End Sub

如何修改此代码以捕获鼠标指针?

0 个答案:

没有答案