GxPen.CreateBrushed

Fore Syntax

CreateBrushed(Brush: IGxBrush; [Width: Double = 1]);

Fore.NET Syntax

CreateBrushed(Brush: Prognoz.Platform.Interop.Drawing.IGxBrush; Width: Double);

Parameters

Brush. The brush that determines the drawing mode with the current pen.

Width. Width of a new pen. A pen with the size of one pixel is created by default.

Description

The CreateBrushed creates a new pen based on the brush passed by the Brush parameter.

Fore Example

Function GetPen(PenBrush: IGxBrush; PenWidth: Double): IGxPen;
Var
    OutPen: IGxPen;
Begin
    OutPen := New GxPen.CreateBrushed(PenBrush, PenWidth);
    Return OutPen;
End Function GetPen;

This function returns the pen based on the brush and width passed as input parameters.

Fore.NET Example

Imports Prognoz.Platform.Interop.Drawing;

Function GetPen(PenBrush: IGxBrush; PenWidth: Double): GxPen;
Var
    OutPen: GxPen = New GxPenClass();
Begin
    OutPen.CreateBrushed(PenBrush, PenWidth);
    Return OutPen;
End Function;

This function returns the pen based on the brush and width passed as input parameters.

See also:

GxPen