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

DrawBackGlassCheckedSimple() public static method

Draw a background in checked simple glass effect.
public static DrawBackGlassCheckedSimple ( 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 DrawBackGlassCheckedSimple(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 areas as a glass effect
                return DrawBackGlassRadial(rect, backColor1, backColor2,
                                           _glassColorTopL, _glassColorBottomL,
                                           6f, 1.2f, orientation, context.Graphics,
                                           _fullGlassLength, memento);
            }
        }