2.4. Some Basic GDI+ Objects

In previous sections we discussed the steps required to write a simple graphics application using Visual Studio .NET. Before we move on to the next chapter, let’s discuss some basic GDI+ objects, such as the color-, point-, and rectangle-related structures provided by the .NET Framework library. Understanding these structures is very important because they are used throughout the book.

2.4.1. The Color Structure

You may have noticed that we used the Color structure in our previous example. The Color structure represents a GDI+ ARGB (alpha-red-green-blue) color. This class contains a static property for almost every possible color. For example, Color.Black and Color.Red represent black and red, respectively. Besides ...

Get Graphics Programming with GDI+ 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.