Alsing.Drawing.GDI.GDISurface.DrawRect C# (CSharp) Method

DrawRect() public method

public DrawRect ( GDIPen pen, int left, int top, int width, int height ) : void
pen GDIPen
left int
top int
width int
height int
return void
        public void DrawRect(GDIPen pen, int left, int top, int width, int height)
        {
            DrawLine(pen, new Point(left, top), new Point(left + width, top));
            DrawLine(pen, new Point(left, top + height), new Point(left + width, top + height));
            DrawLine(pen, new Point(left, top), new Point(left, top + height));
            DrawLine(pen, new Point(left + width, top), new Point(left + width, top + height + 1));
        }

Same methods

GDISurface::DrawRect ( Color color, int left, int top, int width, int height ) : void