TTeeCanvas.AssignBrush
TTeeCanvas
procedure AssignBrush(Const ABrush: TTeeBrush); overload;
Unit
TeCanvas
Description
The AssignBrush method copies the passed Brush properties into the Canvas brush, to fill graphical drawings using the specified brush color, pattern and image.
AssignBrush is different than calling Canvas.Brush.Assign( MyBrush ) because it does additional tasks, like assigning the brush image ( if used ), and the background color ( the ABackColor parameter ).
The BackColor parameter defines the background color used when the Brush Style property is not solid ( patterns, different than bsSolid ).
The foreground color is set to the Brush.Color property.
See also:
AssignBrushColor method.
TBrush.Style property.
TChartBrush object.