Method GetAsPen
GetAsPen(float)
Gets this color as Pen with the specified width. This method caches pens with integer widths using GetPen(int). Pens with non-integer widths are not cached.
public Pen GetAsPen(float width = 1)
Parameters
widthfloatWidth of the pen.
Returns
Remarks
The difference between this method and GetPen(int) is that this method accepts float values.
GetAsPen(float, DashStyle)
public Pen GetAsPen(float width, DashStyle dashStyle)
Parameters
widthfloatWidth of the pen. Optional. Default is 1.
dashStyleDashStyleDash style of the pen. Optional. Default is Solid.