Drawing line
Can we draw a line in C# using line command only without passing "Pen" ?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
VulpesRank #55 · 29.2K reputationPosted Jun 24, 2012, 9:03 AM EDT
If so, then you can't draw line without passing a 'Pen' argument because, as you'll see from the documentation, all four overloads of this method require a Pen object:
http://msdn.microsoft.com/en-us/library/system.drawing.graphics.drawline.aspx