GxSolidBrush.Create

Syntax

Create(Color: IGxColor);

Parameters

Color. Brush color.

Description

The Create constructor creates a new solid brush with the color specified in the Color parameter.

Example

Function GetSolidBrush(BrushColor: GxKnownColor): IGxSolidBrush;
Var
    SolidBrush: IGxSolidBrush;
Begin
    SolidBrush := New GxSolidBrush.Create(GxColor.FromKnownColor(BrushColor));
    Return SolidBrush;
End Function GetSolidBrush;

The function returns a solid brush, which color is passed as an input parameter.

See also:

GxSolidBrush