ComponentFactory.Krypton.Toolkit.RenderGlassHelpers.DrawBackGlassNormalSimple C# (CSharp) Method

DrawBackGlassNormalSimple() public static method

Draw a background in normal simple glass effect.
public static DrawBackGlassNormalSimple ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, IDisposable memento ) : IDisposable
context RenderContext Rendering context.
rect System.Drawing.Rectangle Rectangle to draw.
backColor1 Color First color.
backColor2 Color Second color.
orientation VisualOrientation Drawing orientation.
path System.Drawing.Drawing2D.GraphicsPath Clipping path.
memento IDisposable Cache used for drawing.
return IDisposable
        public static IDisposable DrawBackGlassNormalSimple(RenderContext context,
                                                            Rectangle rect,
                                                            Color backColor1,
                                                            Color backColor2,
                                                            VisualOrientation orientation,
                                                            GraphicsPath path, 
                                                            IDisposable memento)
        {
            using (Clipping clip = new Clipping(context.Graphics, path))
            {
                // Draw the inside area
                return DrawBackGlassLinear(rect, rect,
                                           backColor1, backColor2,
                                           _glassColorTopL,
                                           _glassColorBottomL,
                                           orientation,
                                           context.Graphics,
                                           _fullGlassLength,
                                           memento);
            }
        }