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

DrawRaisedBorder() private static method

private static DrawRaisedBorder ( 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 DrawRaisedBorder(Graphics g, Brush dark, Rectangle r, Brush darkdark, Brush light, Brush normal) {
            g.FillRectangle(normal, r.Left, r.Top, r.Width - 1, 1);
            g.FillRectangle(normal, r.Left, r.Top, 1, r.Height - 1);
            g.FillRectangle(light, r.Left + 1, r.Top + 1, r.Width - 2, 1);
            g.FillRectangle(light, r.Left + 1, r.Top + 1, 1, r.Height - 2);

            g.FillRectangle(darkdark, r.Right - 1, r.Top, 1, r.Height);
            g.FillRectangle(darkdark, r.Left, r.Bottom - 1, r.Width, 1);
            g.FillRectangle(dark, r.Right - 2, r.Top + 1, 1, r.Height - 2);
            g.FillRectangle(dark, r.Left + 1, r.Bottom - 2, r.Width - 2, 1);
        }