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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for