先把图像画在内存里,然后再取出来就行了。
Graphics g1 = this.CrateGraphic();
BufferedGraphicsContext currentContext = BufferedGraphicsManager.Current;
BufferedGraphics myBuffer = currentContext.Allocate(g1, displayRec);
Graphics g = myBuffer.Graphics;
g.DrawImage(图片, x, y);
myBuffer.Render();
myBuffer.Dispose();