Image myImage = new Bitmap(m_maxw, m_maxh); Graphics gr1 = Graphics.FromImage(myImage);
IntPtr dc1 = gr1.GetHdc();
IntPtr dc2 = NativeMethods.GetWindowDC(NativeMethods.GetDesktopWindow());
//NativeMethods.BitBlt(dc1, 0, 0, Screen.PrimaryScreen.Bounds.Width,
// Screen.PrimaryScreen.Bounds.Height, dc2, 0, 0, 13369376);
NativeMethods.BitBlt(dc1, 0, 0,m_maxw,
m_maxh, dc2,865-m_maxw+150, 41, 13369376); gr1.ReleaseHdc(dc1);
pictureBox1.Image =null;
pictureBox1.Image =myImage;
IntPtr dc1 = gr1.GetHdc();
IntPtr dc2 = NativeMethods.GetWindowDC(NativeMethods.GetDesktopWindow());
//NativeMethods.BitBlt(dc1, 0, 0, Screen.PrimaryScreen.Bounds.Width,
// Screen.PrimaryScreen.Bounds.Height, dc2, 0, 0, 13369376);
NativeMethods.BitBlt(dc1, 0, 0,m_maxw,
m_maxh, dc2,865-m_maxw+150, 41, 13369376); gr1.ReleaseHdc(dc1);
pictureBox1.Image =null;
pictureBox1.Image =myImage;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货