level 2
全屏截图并保存的例子
Dim _b As Bitmap = New Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height)
Dim _g As Graphics = Graphics.FromImage(_b)
Dim _s As Size = New Size(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height)
_g.CopyFromScreen(0, 0, 0, 0, _s, CopyPixelOperation.SourceCopy)
PictureBox1.Image = _b
Dim Temp_Topath as string = "D:\"
PictureBox1.Image.Save(Temp_Topath & Format(Now, "yyyyMMdd") & "\" & Format(Now, "yyyyMMddHHmmss") & ".bmp", System.Drawing.Imaging.ImageFormat.Jpeg)
2014年12月18日 06点12分

