CreateBrushed(Brush: IGxBrush; [Width: Double = 1]);
CreateBrushed(Brush: Prognoz.Platform.Interop.Drawing.IGxBrush; Width: Double);
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.
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: