title: vb.net - Save screenshot with reduced resolution and image quality
body: <p>I am using this code to take screenshots on a production machine and save them to a folder. each file is about 400 kb in size, and I do not really need good resolution and quality. How can I half the resolution and reduce the jpg quality to save space?</p>
  <pre><code>Private Sub TakeScreenShot()
  
      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 Graphics = Graphics.FromImage(screenGrab)
      g.CopyFromScreen(New Point(0, 0), New Point(0, 0), screenSize)
  
      screenGrab.Save(&quot;screenshots\test.jpg&quot;, Imaging.ImageFormat.Jpeg)
  
  End Sub
  </code></pre>