Alsing.Drawing.DrawingTools.DrawSunkenBorder C# (CSharp) Method

DrawSunkenBorder() private static method

private static DrawSunkenBorder ( Graphics g, Brush dark, Rectangle r, Brush darkdark, Brush light, Brush normal ) : void
g System.Drawing.Graphics
dark System.Drawing.Brush
r System.Drawing.Rectangle
darkdark System.Drawing.Brush
light System.Drawing.Brush
normal System.Drawing.Brush
return void
        private static void DrawSunkenBorder(Graphics g, Brush dark, Rectangle r, Brush darkdark, Brush light, Brush normal) {
            g.FillRectangle(dark, r.Left, r.Top, r.Width, 1);
            g.FillRectangle(dark, r.Left, r.Top, 1, r.Height);
            g.FillRectangle(darkdark, r.Left + 1, r.Top + 1, r.Width - 2, 1);
            g.FillRectangle(darkdark, r.Left + 1, r.Top + 1, 1, r.Height - 2);

            g.FillRectangle(light, r.Right - 1, r.Top + 1, 1, r.Height - 1);
            g.FillRectangle(light, r.Left + 1, r.Bottom - 1, r.Width - 1, 1);
            g.FillRectangle(normal, r.Right - 2, r.Top + 2, 1, r.Height - 3);
            g.FillRectangle(normal, r.Left + 2, r.Bottom - 2, r.Width - 3, 1);
        }