In Brief

This chapter introduced several GDI+ tools for drawing graphics:

  • Windows Forms applications have the opportunity to redraw themselves when receiving a Paint event. The discussion in this chapter concentrated on drawing the client area, which is the part of the form without toolbars, menus, status bars, and borders.

  • Two essential graphic drawing tools are brushes and pens. Brushes allow painting an area with a color or pattern. In GDI+ the patterns are more sophisticated and allow defining linear and path gradients. Pens are the basic tools for drawing lines and can be specified with various styles, such as dash styles, end caps, and joins.

  • In addition to basic lines, the Graphics class has shape drawing methods. These methods permit drawing basic shapes such as rectangles and ellipses as well as arcs and pies. For even greater control over shapes, it is possible to customize shapes with polygons.



C# Builder KickStart
C# Builder KickStart
ISBN: 672325896
EAN: N/A
Year: 2003
Pages: 165

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net