In this chapter, we walked through the key classes related to drawing using managed code. The following is a summary of some of the key points related to executing common programming tasks with the .NET Framework Class Library:
GDI+ is the underlying technology used by the managed code to execute drawing tasks.
By default, a graphic's surface has its origin in the upper-left corner.
The Graphics class is used to execute nearly all drawing tasks. You use its methods like DrawLine, DrawEllipse, and FillRectangle to render shapes and colors to the drawing surface.
Classes derived from Brush can be used to fill the interior of shapes. Brush classes include SolidBrush, TextureBrush, and HatchBrush.
The GraphicsPath class is used to group shapes. This allows you to manipulate various shapes as a whole.
The Region class allows you to define areas of your drawing surface for clipping and hit testing.
The Bitmap class encapsulates an image. You can use the DrawImage method of the Graphics class to render it to the surface.
The Matrix class provides a number of ways to transform images and shapes.
The following methods of the Graphics class can be used to transform shapes: RotateTransform, ScaleTransform, MultiplyTransform.