This chapter covered some of the classes in the System.Drawing namespace. You saw how the Graphics class encapsulates a drawing surface. You reviewed the mechanics of drawing, in which the OnPaint event is called whenever your window needs to be redrawn.
You explored colors and coordinate systems. You covered the Point, Size, and Rectangle structures used to specify positions and sizes on your drawing surface. Next, you saw some examples of drawing lines, shapes, text, and images.
In this chapter, you learned about:
The Graphics class
The Color structure
Drawing lines using the Pen class
Drawing shapes using the Brush class
Drawing text using the Font class
Drawing images using the Bitmap class
Drawing into images (double-buffering)
You also learned that it is very important to call Dispose() on certain classes when you are done with them. Those classes are:
Graphics
Pen
Brush
Font
Image
Finally, you had an overview of additional graphical capabilities in the .NET Framework.