NPlot.Windows.PlotSurface2D.Draw C# (CSharp) Method

Draw() public method

Draws the plot surface on the supplied graphics surface [not the control surface].
public Draw ( Graphics g, Rectangle bounds ) : void
g System.Drawing.Graphics The graphics surface on which to draw
bounds System.Drawing.Rectangle A bounding box on this surface that denotes the area on the /// surface to confine drawing to.
return void
        public void Draw(Graphics g, Rectangle bounds)
        {
            // If we are not in design mode then draw as normal.
            if (LicenseManager.UsageMode == LicenseUsageMode.Designtime)
            {
                this.drawDesignMode(g, bounds);
            }
            if (m_drawAsyncImage)
            {
                g.DrawImageUnscaled(m_asyncImage, 0, 0);
                m_drawAsyncImage = false;
            }
            else
            {
                ps_.Draw(g, bounds);
            }
        }