GxPen.CreateBrushed

Syntax

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

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.

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.

See also:

GxPen