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); }
public void DrawLine(CGeo.Point A, CGeo.Point B, Color color, float thickness) { graphics.DrawLine(new Pen(color, thickness), (float)A.X, (float)A.Y, (float)B.X, (float)B.Y); }