0

how to allow the user to select different pen thickness for the lines, eg. triangle, circle, square?

2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by hericles
0

On your form you will need a drop down list, textbox or slider control to accept the pen width as input from the user. Save this width to a variable and then when you are creating the pen use that variable to set the width.

float width = // input from the user
Pen blackPen = New Pen(Color.FromArgb(255, 0, 0, 0), width)
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.