Beispiel #1
0
 public Drawing(Layer.Layer layer, ShapeType shapeType, Brush backgroundType, Color outlineColor,
                int outlineWidth, System.Windows.Media.DashStyle outlineType, Point mousePosition)
     : base(layer)
 {
     if (shapeType != ShapeType.None)
     {
         Graphic = Factory.GetGraphic(shapeType, new Point(mousePosition.X, mousePosition.Y),
                                      backgroundType, outlineColor, outlineWidth, outlineType);
         layer.AddGraphic(Graphic);
     }
 }
Beispiel #2
0
 public Drawing(Layer.Layer layer, Graphic shape) : base(layer, shape)
 {
     layer.AddGraphic(Graphic);
 }