how to print screen and save it as .jpg file?
http://forums.microsoft.com/MSDN/Sho...71479&SiteId=1
I created a shorter and possibly more efficient version in case you were having troubles: vb.net Code: Public Shared Function ScreenGrab() As Bitmap Dim ScreenBitmap As New Bitmap(My.Computer.Screen.Bounds.Width, My.Computer.Screen.Bounds.Height) Graphics.FromImage(ScreenBitmap).CopyFromScreen(Point.Empty, Point.Empty, ScreenBitmap.Size) Return ScreenBitmap End Function
Public Shared Function ScreenGrab() As Bitmap Dim ScreenBitmap As New Bitmap(My.Computer.Screen.Bounds.Width, My.Computer.Screen.Bounds.Height) Graphics.FromImage(ScreenBitmap).CopyFromScreen(Point.Empty, Point.Empty, ScreenBitmap.Size) Return ScreenBitmap End Function
Forum Rules