AGENT.Contrib.Drawing.Drawing._DrawUnfilledPoly C# (CSharp) Method

_DrawUnfilledPoly() private static method

private static _DrawUnfilledPoly ( Microsoft.SPOT.Bitmap screen, Point points, System.Color borderColor, short borderWidth, Point basePoint ) : void
screen Microsoft.SPOT.Bitmap
points Point
borderColor System.Color
borderWidth short
basePoint Point
return void
        private static void _DrawUnfilledPoly(Bitmap screen, Point[] points, Color borderColor, short borderWidth, Point basePoint)
        {
            for (int i = 0; i < points.Length - 1; ++i)
            {
                screen.DrawLine(borderColor, borderWidth, points[i].X - basePoint.X, points[i].Y - basePoint.Y, points[i + 1].X - basePoint.X, points[i + 1].Y - basePoint.Y);
            }

            screen.DrawLine(borderColor, borderWidth, points[0].X - basePoint.X, points[0].Y - basePoint.Y, points[points.Length - 1].X - basePoint.X, points[points.Length - 1].Y - basePoint.Y);
        }