public void DrawNode(CGeo.Point node, Color color, float diameter) { if (diameter == 0) { bmp.SetPixel((int)Math.Floor(node.X), (int)Math.Floor(node.Y), color); return; } graphics.FillEllipse(new SolidBrush(color), (float)node.X - diameter / 2, (float)node.Y - diameter / 2, diameter, diameter); }