vb System.Drawing.Pen.Width类(方法)实例源码

下面列出了vb System.Drawing.Pen.Width 类(方法)源码代码实例,从而了解它的用法。

作者:VB.NET开发    项目:System.Drawin   
Private Sub ShowLineJoin(ByVal e As PaintEventArgs)

    ' Create a new pen.
    Dim skyBluePen As New Pen(Brushes.DeepSkyBlue)

    ' Set the pen's width.
    skyBluePen.Width = 8.0F

    ' Set the LineJoin property.
    skyBluePen.LineJoin = Drawing2D.LineJoin.Bevel

    ' Draw a rectangle.
    e.Graphics.DrawRectangle(skyBluePen, _
        New Rectangle(40, 40, 150, 200))

    'Dispose of the pen.
    skyBluePen.Dispose()

End Sub


问题


面经


文章

微信
公众号

扫码关注公众号