Q&A
Q1: | What if I need to draw a lot of lines, one starting where another ends? Do I need to call DrawLine() for each line? |
A1: | The Graphics object has a method called DrawLines(), which accepts a series of points. The method draws lines connecting the sequence of points. |
Q2: | Is there a way to fill a shape? |
A2: | The Graphics object includes methods that draw filled shapes, such as FillEllipse() and FillRectangle(). |
Get Sams Teach Yourself Microsoft® Visual C#™ .NET in 24 Hours now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.