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

DrawSunkenOuterBorder() private static method

private static DrawSunkenOuterBorder ( Graphics g, Brush dark, Rectangle r, Brush light ) : void
g System.Drawing.Graphics
dark System.Drawing.Brush
r System.Drawing.Rectangle
light System.Drawing.Brush
return void
        private static void DrawSunkenOuterBorder(Graphics g, Brush dark, Rectangle r, Brush light) {

            g.FillRectangle(dark, r.Left, r.Top, r.Width, 1);
            g.FillRectangle(dark, r.Left, r.Top, 1, r.Height);

            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);
        }