Microsoft SDK for Java

Using Brushes

A brush is a graphics tool that a Win32-based application uses to paint the interior of polygons, ellipses, and paths. Drawing applications use brushes to paint shapes; word processing applications use brushes to paint rules; computer-aided design (CAD) applications use brushes to paint the interiors of cross-section views; and spreadsheet applications use brushes to paint the sections of pie charts and the bars in bar graphs.

There are two types of brushes: logical and physical. A logical brush is one that you define in code as the ideal combination of colors, patterns (or both) that an application should use to paint shapes. A physical brush is one that a device driver creates based on your logical-brush definition.

For more information, see:

Brush Origin

Logical Brush Types

WFC Brush Object

Creating a Brush Object

Setting the Brush on the Graphics Object

A Brush Object Example

© 1999 Microsoft Corporation. All rights reserved. Terms of use.