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

RaisedInnerBorder() private static method

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

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