System.Drawing.PieChart.PieSlice.DrawCylinderSurfaceSection C# (CSharp) Method

DrawCylinderSurfaceSection() protected method

Draws the outer periphery of the pie slice.
protected DrawCylinderSurfaceSection ( Graphics graphics, Pen pen, Brush brush, float startAngle, float endAngle, PointF pointStart, PointF pointEnd ) : void
graphics System.Drawing.Graphics /// Graphics object used to draw the surface. ///
pen System.Drawing.Pen /// Pen used to draw outline. ///
brush System.Drawing.Brush /// Brush used to fill the quadrilateral. ///
startAngle float /// Start angle (in degrees) of the periphery section. ///
endAngle float /// End angle (in degrees) of the periphery section. ///
pointStart System.Drawing.PointF /// Point representing the start of the periphery. ///
pointEnd System.Drawing.PointF /// Point representing the end of the periphery. ///
return void
        protected void DrawCylinderSurfaceSection(Graphics graphics, Pen pen, Brush brush, float startAngle, float endAngle, PointF pointStart, PointF pointEnd)
        {
            GraphicsPath path = CreatePathForCylinderSurfaceSection(startAngle, endAngle, pointStart, pointEnd);
            graphics.FillPath(brush, path);
            graphics.DrawPath(pen, path);
        }