TTeeCanvas.AssignBrushColor
 
 
 

All Units  All Classes  Properties, Methods and Events  

TTeeCanvas.AssignBrushColor
TTeeCanvas

procedure AssignBrushColor(Const ABrush: TTeeBrush; 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.




Send us Help Feedback. Copyright 1995-2013 © by Steema Software. All Rights Reserved.