Version

GetLinePen(Color,Int32,LineStyle,Byte) Method

Gets a pen object based on the given parameters.
Syntax
'Declaration
 
Public Overloads Shared Function GetLinePen( _
   ByVal lineColor As Color, _
   ByVal thickness As Integer, _
   ByVal lineStyle As LineStyle, _
   ByVal opacity As Byte _
) As Pen
public static Pen GetLinePen( 
   Color lineColor,
   int thickness,
   LineStyle lineStyle,
   byte opacity
)

Parameters

lineColor
Line color.
thickness
Line thickness or stroke width.
lineStyle
LineStyle to apply.
opacity
Stroke opacity to apply.

Return Value

A pen matching the supplied parameters.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also