Using a Pen to Draw Lines and Shapes
The Graphics class provides a variety of drawing methods including those shown in the following list:
- DrawLine Methods
- DrawRectangle Methods
- DrawEllipse Methods
- DrawArc Methods
- Graphics::DrawPath
- DrawCurve Methods
- DrawBezier Methods
One of the arguments that you pass to such a drawing method is the address of a Pen object.
The following topics cover the use of pens in more detail:
- Using a Pen to Draw Lines and Rectangles
- Setting Pen Width and Alignment
- Drawing a Line with Line Caps
- Joining Lines
- Drawing a Custom Dashed Line
- Drawing a Line Filled with a Texture