Beginning Visual C#supAND#174;/sup 2005

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:

You also learned that it is very important to call Dispose() on certain classes when you are done with them. Those classes are:

Finally, you had an overview of additional graphical capabilities in the .NET Framework.

Категории