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

DrawLinearGradientItem() private static method

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

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