Rev 2323 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2323 | Rev 2329 | ||
---|---|---|---|
Line 994... | Line 994... | ||
994 | /// </summary> |
994 | /// </summary> |
995 | /// <param name="pl"></param> |
995 | /// <param name="pl"></param> |
996 | /// <returns></returns> |
996 | /// <returns></returns> |
997 | public virtual Path CreateRoutePath(List<Point> localPath) |
997 | public virtual Path CreateRoutePath(List<Point> localPath) |
998 | { |
998 | { |
999 | return CreateRoutePath(localPath, true); |
999 | return CreateRoutePath(localPath, true , null); |
1000 | } |
1000 | } |
Line 1001... | Line 1001... | ||
1001 | 1001 | ||
1002 | /// <summary> |
1002 | /// <summary> |
1003 | /// creates path from list of points, for performance set addBlurEffect to false |
1003 | /// creates path from list of points, for performance set addBlurEffect to false |
1004 | /// </summary> |
1004 | /// </summary> |
1005 | /// <param name="pl"></param> |
1005 | /// <param name="pl"></param> |
1006 | /// <returns></returns> |
1006 | /// <returns></returns> |
1007 | public virtual Path CreateRoutePath(List<Point> localPath, bool addBlurEffect) |
1007 | public virtual Path CreateRoutePath(List<Point> localPath, bool addBlurEffect, Brush brush) |
1008 | { |
1008 | { |
1009 | // Create a StreamGeometry to use to specify myPath. |
1009 | // Create a StreamGeometry to use to specify myPath. |
Line 1010... | Line 1010... | ||
1010 | StreamGeometry geometry = new StreamGeometry(); |
1010 | StreamGeometry geometry = new StreamGeometry(); |
Line 1036... | Line 1036... | ||
1036 | ef.RenderingBias = RenderingBias.Performance; |
1036 | ef.RenderingBias = RenderingBias.Performance; |
1037 | } |
1037 | } |
Line 1038... | Line 1038... | ||
1038 | 1038 | ||
1039 | myPath.Effect = ef; |
1039 | myPath.Effect = ef; |
1040 | } |
- | |
- | 1040 | } |
|
- | 1041 | if(brush !=null) |
|
- | 1042 | myPath.Stroke = brush; |
|
1041 | 1043 | else |
|
1042 | myPath.Stroke = Brushes.Magenta; |
1044 | myPath.Stroke = Brushes.Magenta; |
1043 | myPath.StrokeThickness = 5; |
1045 | myPath.StrokeThickness = 5; |
1044 | myPath.StrokeLineJoin = PenLineJoin.Round; |
1046 | myPath.StrokeLineJoin = PenLineJoin.Round; |
1045 | myPath.StrokeStartLineCap = PenLineCap.Triangle; |
1047 | myPath.StrokeStartLineCap = PenLineCap.Triangle; |