日期:2014-05-17  浏览次数:20691 次

C# 下画的虚线,为什么看起来不是很直啊?怎么样才能解决了?

    
            Pen p = new Pen(Color.Black);
            p.DashStyle = System.Drawing.Drawing2D.DashStyle.Custom;
            p.DashPattern = new float[] { 5f,5f};
c# winform

------解决方案--------------------
 g.SmoothingMode = SmoothingMode.AntiAlias; 加上这句话试试