ATMLCommonLibrary.controls.awb.AWBTabControl.DrawTabBackground C# (CSharp) Method

DrawTabBackground() private static method

private static DrawTabBackground ( Graphics g, Color tabBackColor, Point pt ) : void
g System.Drawing.Graphics
tabBackColor Color
pt Point
return void
        private static void DrawTabBackground( Graphics g, Color tabBackColor, Point[] pt )
        {
            Rectangle rc = new Rectangle(pt[0], new Size(pt[5]));
            GraphicsPath path = new GraphicsPath();
            path.AddLines(pt);
            using (LinearGradientBrush pthGrBrush = new LinearGradientBrush(rc, tabBackColor, UTRSGraphicsUtils.DarkenColor(tabBackColor, 5), LinearGradientMode.Vertical))
            {
                g.FillPath(pthGrBrush, path);
                pthGrBrush.Dispose();
            }
        }