Graphics mygraphics = this.tabControl1.CreateGraphics();
Bitmap mImage = new Bitmap(this.tabControl1.ClientRectangle.Width, this.tabControl1.ClientRectangle.Height, mygraphics);
Graphics memoryGraphics = Graphics.FromImage(mImage);
IntPtr dc11 = mygraphics.GetHdc();
IntPtr dc22 = memoryGraphics.GetHdc();
BitBlt(dc22, 0, 0, this.ClientRectangle.Width, this.ClientRectangle.Height, dc11, 0, 0, 13369376); mygraphics.ReleaseHdc(dc11);
memoryGraphics.ReleaseHdc(dc22);
mImage.Save("im.bmp"); 就是这段代码。因为点击Button画的时候有个提示窗口,在自己机子上调试的时候没有问题,保存图像只是tabControl。可是换到另一台机子,就把提示窗口也给画上了,这是怎么回事啊?
Bitmap mImage = new Bitmap(this.tabControl1.ClientRectangle.Width, this.tabControl1.ClientRectangle.Height, mygraphics);
Graphics memoryGraphics = Graphics.FromImage(mImage);
IntPtr dc11 = mygraphics.GetHdc();
IntPtr dc22 = memoryGraphics.GetHdc();
BitBlt(dc22, 0, 0, this.ClientRectangle.Width, this.ClientRectangle.Height, dc11, 0, 0, 13369376); mygraphics.ReleaseHdc(dc11);
memoryGraphics.ReleaseHdc(dc22);
mImage.Save("im.bmp"); 就是这段代码。因为点击Button画的时候有个提示窗口,在自己机子上调试的时候没有问题,保存图像只是tabControl。可是换到另一台机子,就把提示窗口也给画上了,这是怎么回事啊?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货