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

DrawGradientItem() private static method

private static DrawGradientItem ( Graphics g, Rectangle backRect, GradientItemColors colors ) : void
g System.Drawing.Graphics
backRect System.Drawing.Rectangle
colors GradientItemColors
return void
        private static void DrawGradientItem(Graphics g,
                                             Rectangle backRect,
                                             GradientItemColors colors)
        {
            // Cannot paint a zero sized area
            if ((backRect.Width > 0) && (backRect.Height > 0))
            {
                // Draw the background of the entire item
                DrawGradientBack(g, backRect, colors);

                // Draw the border of the entire item
                DrawSolidBorder(g, backRect, colors);
            }
        }