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

DrawBackGlassTrackingSimple() public static method

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