Exemple #1
0
 private void DrawPoints(WindowsForms canvas, Color color)
 {
     if (properties.displayPoints)
     {
         canvas.DrawAt(color, calc2DPoints);
     }
 }
Exemple #2
0
        public void Draw(WindowsForms canvas, Color colorPoints, Color colorLines)
        {
            //Tegner rotations midt
            if (properties.displayCenterOfRotation)
            {
                var center = CalcNewPoint(new PointF3D());
                canvas.DrawAt(Color.Blue, (int)center.X, (int)center.Y, properties.wFPointSize * 4f);
            }

            //Draw lines
            DrawLines(canvas, colorLines);

            //Draw with points on them
            DrawPoints(canvas, colorPoints);
        }