예제 #1
0
파일: Drawer.cs 프로젝트: iSvB/cgeo
 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);
 }
예제 #2
0
파일: Drawer.cs 프로젝트: iSvB/cgeo
 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);
 }