GxHatchBrush.Create

Syntax

Create(HatchStyle: GxHatchStyle; ForegroundColor: IGxColor; BackgroudColor: IGxColor);

Parameters

HatchStyle. Hatching type.

ForegroundColor. Hatching background color.

BackgroudColor. Color of hatching lines.

Description

The Create constructor creates a new hatching brush in accordance with the specified parameters.

Example

Function GetHatchBrush(ForegroundColor: GxKnownColor; BackgroudColor: GxKnownColor): IGxHatchBrush;
Var
    FColor, BColor: IGxColor;
    HatchBrush: IGxHatchBrush;
Begin
    FColor := GxColor.FromKnownColor(ForegroundColor);
    BColor := GxColor.FromKnownColor(BackgroudColor);
    HatchBrush := New GxHatchBrush.Create(GxHatchStyle.HorizontalBrick, FColor, BColor);
    Return HatchBrush;
End Function GetHatchBrush;

The function returns hatching brush with the specified hatching type. Brush colors are passed by input parameters.

See also:

GxHatchBrush