ComponentFactory.Krypton.Toolkit.KryptonSparkleRenderer.DrawGradientBack C# (CSharp) Method

DrawGradientBack() private static method

private static DrawGradientBack ( Graphics g, Rectangle backRect, GradientItemColors colors ) : void
g System.Drawing.Graphics
backRect System.Drawing.Rectangle
colors GradientItemColors
return void
        private static void DrawGradientBack(Graphics g,
                                             Rectangle backRect,
                                             GradientItemColors colors)
        {
            backRect.X++;
            backRect.Width -= 1;

            using (RenderContext context = new RenderContext(null, g, backRect, null))
            {
                using (GraphicsPath backPath = CreateBorderPath(backRect, _cutMenuItemBack))
                {
                    backRect.Width -= 1;
                    backRect.Height -= 1;

                    RenderGlassHelpers.DrawBackGlassBottom(context, backRect,
                                                           colors.Begin, colors.End,
                                                           VisualOrientation.Top, backPath, null);
                }
            }
        }