wpf虚线画刷

2021-06-29 01:02

阅读:544

标签:code   color   end   pre   col   ash   虚线   pen   orb   

 //虚线
DoubleCollection dc = new DoubleCollection();
dc.Add(2);
DashStyle dashstyle = new DashStyle();
dashstyle.Dashes = dc;

Pen renderPen = new Pen(new SolidColorBrush(Colors.Navy), 1.5);
renderPen.DashStyle = dashstyle;
renderPen.DashCap = PenLineCap.Round;

wpf虚线画刷

标签:code   color   end   pre   col   ash   虚线   pen   orb   

原文地址:https://www.cnblogs.com/ives/p/14932113.html


评论


亲,登录后才可以留言!