我想要相對自由的方式來做到這一點,有什么想法嗎?例如,以下內容截取了不包含半透明窗口的屏幕截圖:Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Shown Text = "Opaque Window" Dim win2 As New Form win2.Opacity = 0.5 win2.Text = "Tranparent Window" win2.Show() win2.Top = Top + 50 win2.Left = Left() + 50 Dim bounds As Rectangle = System.Windows.Forms.Screen.GetBounds(Point.Empty) Using bmp As Bitmap = New Bitmap(bounds.Width, bounds.Height) Using g As Graphics = Graphics.FromImage(bmp) g.CopyFromScreen(Point.Empty, Point.Empty, bounds.Size) End Using bmp.Save("c:\temp\scn.gif") End Using Process.Start(New Diagnostics.ProcessStartInfo("c:\temp\scn.gif") With {.UseShellExecute = True}) End SubEnd Class我的Google-fu真的很爛,或者聽起來并不容易。我很確定為什么會發生這種情況,因為視頻驅動程序必須分開內存才能完成這項工作,但是我不在乎為什么它行不通,我只想在沒有它的情況下做...*印刷屏幕按鍵破解*第三方軟件* SDK功能尚可,但我會投票支持用戶擁有的每個對象,這些對象可以在純框架中向我展示(只是開個玩笑,但會很好)。如果這是唯一的方法,那么我如何在VB中這樣做呢?
添加回答
舉報
0/150
提交
取消