RE: [Request] Screen capture 04-24-2013, 07:42 AM
#12
That's about 6 lines of code. (Even less if you don't waste time disposing because it's the termination of the program, by the time this is done.):
And the rest is manipulation to make sure that the application never shows any windows to interfere, which is even more simple.
You could change "SAVE LOCATION" to a command line argument and that way you could pin a shortcut with whatever command line output path you want, to your taskbar for a customizable save location without much hassle.
Code:
Using bmp As New Bitmap(My.Computer.Screen.Bounds.Width, My.Computer.Screen.Bounds.Height)
Using g As Graphics = Graphics.FromImage(bmp)
g.CopyFromScreen(Point.Empty, Point.Empty, bmp.Size)
bmp.Save("SAVE LOCATION", ImageFormat.Png)
End Using
End UsingAnd the rest is manipulation to make sure that the application never shows any windows to interfere, which is even more simple.
You could change "SAVE LOCATION" to a command line argument and that way you could pin a shortcut with whatever command line output path you want, to your taskbar for a customizable save location without much hassle.
-- cxS
[ Haskell/.NET/C/C++ - Software Engineer ]
![[+]](https://sinister.ly/images/modern/collapse_collapsed.png)