예제 #1
0
 protected Pen GetPen(RelevantObjectPreferences preferences)
 {
     return(new Pen {
         Brush = new SolidColorBrush {
             Color = AdjustColor(preferences.Color),
             Opacity = AdjustOpacity(preferences.Opacity)
         },
         DashStyle = preferences.GetDashStyle(),
         Thickness = preferences.Thickness
     });
 }
예제 #2
0
 protected Pen GetPenSelected(RelevantObjectPreferences preferences)
 {
     return(new Pen {
         Brush = new SolidColorBrush {
             Color = Color.FromArgb(255, 255, 200, 0),
             Opacity = 1
         },
         DashStyle = DashStyles.Solid,
         Thickness = preferences.Thickness + 2
     });
 }
예제 #3
0
 public abstract void DrawYourself(DrawingContext context, CoordinateConverter converter, RelevantObjectPreferences preferences, Pen pen);