コード例 #1
0
 public void Load(SplineMap spline)
 {
     if (Spline != null)
     {
         Spline.Changed -= SplineOnChanged;
     }
     Spline          = spline;
     Spline.Changed += SplineOnChanged;
     RaiseChanged();
 }
コード例 #2
0
        public void Draw(string selectableItemsKey, SKCanvas canvas, SKRect drawRect, SplineMap splineMap)
        {
            var paint = _drawConfiguration[selectableItemsKey];

            DrawLines(paint, canvas, drawRect, splineMap.Points.Select(v => ToPoint(v)).ToArray());
            splineMap.Points
            .Select(v => ToPoint(v))
            .ForEach(point => DrawPoint(paint, canvas, drawRect, point));
        }