Advertisement
6_2008-2009 Graphics/ Sound #201170

Take a full-screen screenshot (capture screen) and save it to disk

Takes a screenshot (like PrintScreen keayboard key) and saves it to a diskfile (you can also manipulate it like any other bitmap/graphic)

AI

Resumen de IA: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Código fuente
original-source
Upload
Dim screenSize As Size = New Size(My.Computer.Screen.Bounds.Width, My.Computer.Screen.Bounds.Height)
Dim screenGrab As New Bitmap(My.Computer.Screen.Bounds.Width, My.Computer.Screen.Bounds.Height)
Dim g As System.Drawing.Graphics = System.Drawing.Graphics.FromImage(screenGrab)
g.CopyFromScreen(New Point(0, 0), New Point(0, 0), screenSize)
screenGrab.Save("C:\screenGrab.bmp")
'or screenGrab.Save("C:\screenGrab.jpg", System.Drawing.Imaging.ImageFormat.Jpeg)
Comentarios originales (3)
Recuperado de Wayback Machine