示例#1
0
        public void Draw(MemoryBitmap bitmap)
        {
            PolyPoint point = First;

            do
            {
                bitmap.DrawPoint((int)point.X, (int)point.Y, color, Helper.pointSize);
                bitmap.DrawLine(point, point.Next, color);
                point = point.Next;
            } while (point != First);
            if (DrawLabels)
            {
                do
                {
                    if (point.NextEdge.EnactedRestriction != Edge.Restriction.None)
                    {
                        Helper.DrawRestrictionLabel(point.NextEdge, bitmap);
                    }
                    point = point.Next;
                } while (point != First);
            }
        }