Using Brushes

From RAD Studio
Jump to: navigation, search

Go Up to Using the Properties of the Canvas Object

The Brush property of a canvas controls the way you fill areas, including the interior of shapes. Filling an area with a brush is a way of changing a large number of adjacent pixels in a specified way.

The brush has three properties you can manipulate:

  • Color property changes the fill color.
  • Style property changes the brush style.
  • Bitmap property uses a bitmap as a brush pattern.

The values of these properties determine the way the canvas fills shapes or other areas. By default, every brush starts out white, with a solid style and no pattern bitmap.

You can use Vcl.Graphics.TBrushRecall for quick saving off and restoring the properties of brushes.

See Also