VintaSoft Imaging .NET SDK 14.0: Documentation for .NET developer
Vintasoft.Imaging.Drawing Namespace / DrawingFactoryAnnotationsExtensions Class / CreatePen Methods / CreatePen(DrawingFactory,AnnotationPen,DrawingLineCap,DrawingLineCap) Method
Syntax Requirements SeeAlso
In This Topic
    CreatePen(DrawingFactory,AnnotationPen,DrawingLineCap,DrawingLineCap) Method (DrawingFactoryAnnotationsExtensions)
    In This Topic
    Creates the IDrawingPen object from the AnnotationPen object.
    Syntax
    'Declaration
    
    <ExtensionAttribute()>
    Public Overloads Shared Function CreatePen( _
    ByVal drawingFactory As DrawingFactory, _
    ByVal pen
    The AnnotationPen object to convert.
    As Vintasoft.Imaging.Annotation.AnnotationPen, _
    ByRef startLineCap
    A line cap that should be used for drawing of start cap of line.
    As DrawingLineCap, _
    ByRef endLineCap
    A line cap that should be used for drawing of end cap of line.
    As DrawingLineCap _
    ) As IDrawingPen

    Parameters

    drawingFactory
    The DrawingFactory.
    pen
    The AnnotationPen object to convert.
    startLineCap
    A line cap that should be used for drawing of start cap of line.
    endLineCap
    A line cap that should be used for drawing of end cap of line.

    Return Value

    The IDrawingPen object.
    Requirements

    Target Platforms: .NET9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also