Filling

So far in this chapter, we have shown how to create lines, curves, and shapes. But what if you wanted to create solid shapes or shapes that contained a visual pattern? How would you accomplish this? The answer is by filling the shapes using a brush.

We have already covered the types of brushes you can use and the effects they provide earlier in this chapter. Feel free to go back if you need to refresh yourself. This section focuses specifically on filling.

To fill shapes, there are several methods provided on the Graphics object for this purpose. These methods include

  • FillClosedCurve

  • FillEllipse

  • FillPath

  • FillPolygon

  • FillRectangle

  • FillRegion ...

Get Visual Basic® .NET by Example 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.