Sign in Join
FPDoc Onlineexperiment

TCanvas.Brush property

Member of TCanvaspublishedIn unit Graphics

The Brush used to paint on the Canvas.

Declaration

pascal
property Brush: TBrush read FLazBrush write SetLazBrush;

Description

Brush is a TBrush property with the tool used to paint the interior of filled shapes on the drawing surface. It has settings like Color and Style, but may also use a Bitmap to fill the interior of shapes.

Setting a new value for the property causes the handle for the Brush to be freed and re-created in the cached resources for the canvas.The values from the new Brush are assigned to the member variable for the property. The BrushChanged method is called to update the state flags for the canvas.

Use Pen to configure the tool used to draw lines and curves on the drawing surface.

Use Font to set the typeface, color, and style used to draw text on the drawing surface.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.