NPlot.BarPlot.DrawInLegend C# (CSharp) Метод

DrawInLegend() публичный Метод

Draws a representation of this plot in the legend.
public DrawInLegend ( Graphics g, Rectangle startEnd ) : void
g System.Drawing.Graphics The graphics surface on which to draw.
startEnd System.Drawing.Rectangle A rectangle specifying the bounds of the area in the legend set aside for drawing.
Результат void
        public virtual void DrawInLegend(Graphics g, Rectangle startEnd)
        {
            int smallerHeight = (int)(startEnd.Height * 0.5f);
            int heightToRemove = (int)(startEnd.Height * 0.5f);
            Rectangle newRectangle = new Rectangle( startEnd.Left, startEnd.Top + smallerHeight / 2, startEnd.Width, smallerHeight );
            g.FillRectangle( rectangleBrush_.Get( newRectangle ), newRectangle );
            g.DrawRectangle( borderPen_, newRectangle );
        }