BiomePainter.BitmapSelector.BitmapSelector.RecreateBuffers C# (CSharp) 메소드

RecreateBuffers() 개인적인 메소드

private RecreateBuffers ( ) : void
리턴 void
        private void RecreateBuffers()
        {
            backbufferContext.MaximumBuffer = new Size(Math.Max(this.Width, 1), Math.Max(this.Height, 1));

            if (backbufferGraphics != null)
                backbufferGraphics.Dispose();

            backbufferGraphics = backbufferContext.Allocate(this.CreateGraphics(), new Rectangle(0, 0, Math.Max(this.Width, 1), Math.Max(this.Height, 1)));

            g = backbufferGraphics.Graphics;

            this.Invalidate();
        }