CreateBrushed(Brush: IGxBrush; [Width: Double = 1]);
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.
The CreateBrushed creates a new pen based on the brush passed by the Brush parameter.
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: