Method GetPen
GetPen(int)
Retrieves a Pen instance with the specified width.
public virtual Pen GetPen(int width)
Parameters
widthintThe width of the pen to retrieve. Must be a positive integer.
Returns
- Pen
A Pen instance with the specified width. If the width is less than or equal to a predefined maximum cached width, a cached instance may be returned; otherwise, a new instance is created.