I want to know,how to draw the slanting line with thickness using the graphics.Any ideas how to achieve this?
Regards
Rakesh Shankar.P
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
drawLine()method will draw a straight line in any direction, including on a “slant.” If you want the line to be thicker than a single pixel, then simply calldrawLine()multiple times, adjusting the start and end points. So for example, to draw a horizontal line that is two pixels thick: