VintaSoft Imaging .NET SDK 15.1: Documentation for .NET developer
Vintasoft.Imaging.Drawing.SkiaSharp Namespace / SkiaSharpDrawingFactory Class / CreatePen Methods / CreatePen(ColorBase,Single) Method
Syntax Exceptions Requirements SeeAlso
In This Topic
CreatePen(ColorBase,Single) Method (SkiaSharpDrawingFactory)
In This Topic
Creates a pen with specified color and width.
Syntax

Parameters

color
The pen color.
width
The pen width.

Return Value

New pen with specified color and width.
Exceptions
ExceptionDescription
Thrown if color is null.
Requirements

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

See Also