Download Now

    Reference NewPen

    Declared in Codebot.Graphics.pas on lines 26, 28

    Create a new pen using a brush as the color
    function NewPen(Brush: IBrush; Width: Float = 1; Join: TLineJoin = jnMiter): IPen; overload;
    Create a new solid color pen
    function NewPen(Color: TColorB; Width: Float = 1; Join: TLineJoin = jnMiter): IPen; overload;

    See also

    IBrush in Codebot.Graphics.Types.pas
    Float in Codebot.System.pas
    TLineJoin in Codebot.Graphics.Types.pas
    IPen in Codebot.Graphics.Types.pas
    TColorB in Codebot.Graphics.Types.pas