Create(HatchStyle: GxHatchStyle; ForegroundColor: IGxColor; BackgroudColor: IGxColor);
HatchStyle. Hatching type.
ForegroundColor. Hatching background color.
BackgroudColor. Color of hatching lines.
The Create constructor creates a new hatching brush in accordance with the specified parameters.
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: