Contents  All Classes  Index A-Z  All Units


TTeeCanvas.AssignBrushColor
TTeeCanvas

procedure AssignBrushColor(ABrush: TChartBrush; AColor, ABackColor: TColor);

Unit
TeCanvas

Description

The AssignBrushColor 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 ABackColor parameter defines the background color used when the Brush Style property is not solid ( patterns, different than bsSolid ).

The AColor parameter is the color to fill the foreground parts of the brush pattern. You can pass a different color than the Brush.Color without modifying it.

See also:

AssignBrush method.
TBrush.Style property.
TChartBrush object.



Submit your feedback about this page.

Copyright 1995-2007 © by Steema Software. All Rights Reserved.