Skip to Content
.NET Windows® Forms Custom Controls
book

.NET Windows® Forms Custom Controls

by Richard Weeks
January 2002
Intermediate to advanced
288 pages
5h 48m
English
Sams
Content preview from .NET Windows® Forms Custom Controls

Brushes

Brushes are used to fill basic geometric shapes such as rectangles, ellipses, and polygons. The System.Drawing.Brush class is an abstract base class and cannot be instantiated directly. The Brush class serves as a base class for various brush styles. Figure 4.1 shows four of the common brush styles in action.

Figure 4.1. Basic brushes.

The following sections describe the Brush class styles.

SolidBrush

A SolidBrush is just as its name implies: it creates a solid color that fills a graphics primitive such as a triangle, circle, or rectangle. All graphics primitives are constructed from the most basic primitive, the point. Points can be used ...

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

Pro .NET 5 Custom Libraries: Implementing Custom .NET Data Types

Pro .NET 5 Custom Libraries: Implementing Custom .NET Data Types

Roger Villela
Professional C# 5.0 and .NET 4.5.1

Professional C# 5.0 and .NET 4.5.1

Christian Nagel, Jay Glynn, Morgan Skinner

Publisher Resources

ISBN: 0672323338Purchase book