private CircleVectorShapeModel CreateCircle() { var circle = new CircleVectorShapeModel(mouseDownPoint.X, mouseDownPoint.Y, 0, color, layers[0]); vectorShapes.Add(circle); return(circle); }
private void ResizeCircle(CircleVectorShapeModel circle) { circle.X = Math.Min(mouseDownPoint.X, mouseUpPoint.X); circle.Y = Math.Min(mouseDownPoint.Y, mouseUpPoint.Y); circle.Radius = Math.Max(Math.Abs(mouseUpPoint.X - mouseDownPoint.X), Math.Abs(mouseUpPoint.Y - mouseDownPoint.Y)); }