Introduction to Graphics in .NET

As already mentioned at the start of this chapter, we will be introducing GDI+ by demonstrating examples that use the classes in the System.Drawing assembly. Most applications don't do any custom drawing on their forms. They just use the common controls provided for displaying data and allowing users to interact with the application. Sometimes though, there is a need to draw rotated text, custom lines, or display icons or bitmaps. GDI+ is used for this purpose. The GDI+ classes can also be combined to create even more complex displays such as a bar graph.

The intent of this chapter is to introduce you to the most common aspects of GDI+. This chapter is not an extensive overview but rather a great first step.

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.