C#GDI+双缓冲高效绘图
时间:2010-10-29 来源:kisstome88
BufferedGraphicsContext GraphicsContext = BufferedGraphicsManager.Current;
BufferedGraphics myBuffer = GraphicsContext.Allocate(e.Graphics, e.ClipRectangle);
Graphics g = myBuffer.Graphics;
g.PixelOffsetMode = PixelOffsetMode.HighQuality;
g.SmoothingMode = SmoothingMode.HighQuality;
g.Clear(BackColor);
Pen bluePen2 = new Pen(Color.Blue);
LineDrawRoutine(g, bluePen2);
myBuffer.Render(e.Graphics);
g.Dispose();
myBuffer.Dispose();
相关阅读 更多 +