日期:2014-05-17 浏览次数:20873 次
public Bitmap GetScreen() {
Bitmap bmp = new Bitmap(Screen.PrimaryScreen.Bounds.Width,
Screen.PrimaryScreen.Bounds.Height);
using (Graphics g = Graphics.FromImage(bmp)) {
g.CopyFromScreen(0, 0, 0, 0, bmp.Size);
SolidBrush sb = new SolidBrush(Color.FormArgb(125,0,0,0));
g.FillRectangle(sb,0,0,bmp.Width,bmp.Height);
sb.Dispose();
}
return bmp;
}