Skip to Content
Windows Forms Programming in Visual Basic .NET
book

Windows Forms Programming in Visual Basic .NET

by Chris Sells, Justin Gehtland
October 2003
Intermediate to advanced
736 pages
15h 25m
English
Addison-Wesley Professional
Content preview from Windows Forms Programming in Visual Basic .NET

Paths

In addition to using the basic shapes, you can compose and draw shapes together using a path. A path, modeled via the GraphicsPath class, is very much like a Graphics object, in that it's a logical container of zero or more shapes (called figures or subpaths). The difference (in addition to the fact that a Graphics object is backed by a surface such as a screen or a printer) is that the figures can be started and ended arbitrarily. This means that you can compose one or more complicated figures from a set of basic shapes. You collect figures into a path so that you can frame or fill them as a unit using a single brush or pen, which is applied when the path is drawn. For example, Figure 4.19 shows a rounded rectangle (a shape that the Graphics ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Visual Basic .NET

Learning Visual Basic .NET

Jesse Liberty
Windows Forms 2.0 Programming

Windows Forms 2.0 Programming

Chris Sells, Michael Weinhardt

Publisher Resources

ISBN: 0321125193Purchase book