Hiding graphics created by 'Graphics'
<p>I have not studied much of the Graphics class in C# but have found myself needing it for my day to day fun times (coding to pass time).</p>

<p>I would just like to know if there is a way to store the graphics drawn (before they are visibly seen on a form) so that I may have the whole segment drawn at the same time instead of having it drawn one by one. By segment I mean a collection of the shapes that are draw-able using the <code>Graphics</code> class.</p>

<p>In other words I am trying to get all of this drawn before I attempt to show it on the screen by calling <code>.FillRectangle</code>, or equivalent. </p>

<p>Also is there any known way to draw graphics without using the existing methods like GDI+ etc?</p>

<p>If I have missed anything let me know.</p>

<p>EDIT CODE:</p>

<pre><code>      using (Graphics formGraphics = df.CreateGraphics())
        {
            this.DoubleBuffered = true;
            foreach (Dot d in memmap)
            {
                c = Color.FromArgb(d.r, d.g, d.b);
                using (SolidBrush brush = new SolidBrush(c))
                {
                    formGraphics.FillRectangle(brush, d.x, d.y, 1, 1);
                }
            }
            this.DoubleBuffered = false;
        }
</code></pre>
