Summary

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. ...

Get Visual Basic® Programmer's Guide to the .NET Framework Class Library 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.