11// Copyright (c) Six Labors.
22// Licensed under the Six Labors Split License.
33
4- #nullable disable
5-
64namespace SixLabors . ImageSharp . Drawing . Processing ;
75
86/// <summary>
@@ -35,7 +33,7 @@ public PenOptions(Color color, float strokeWidth)
3533 /// <param name="color">The color.</param>
3634 /// <param name="strokeWidth">The stroke width in px units.</param>
3735 /// <param name="strokePattern">The stroke pattern.</param>
38- public PenOptions ( Color color , float strokeWidth , float [ ] strokePattern )
36+ public PenOptions ( Color color , float strokeWidth , float [ ] ? strokePattern )
3937 : this ( new SolidBrush ( color ) , strokeWidth , strokePattern )
4038 {
4139 }
@@ -46,7 +44,7 @@ public PenOptions(Color color, float strokeWidth, float[] strokePattern)
4644 /// <param name="strokeFill">The brush used to fill the stroke outline.</param>
4745 /// <param name="strokeWidth">The stroke width in px units.</param>
4846 /// <param name="strokePattern">The stroke pattern.</param>
49- public PenOptions ( Brush strokeFill , float strokeWidth , float [ ] strokePattern )
47+ public PenOptions ( Brush strokeFill , float strokeWidth , float [ ] ? strokePattern )
5048 {
5149 Guard . MustBeGreaterThan ( strokeWidth , 0 , nameof ( strokeWidth ) ) ;
5250
@@ -70,7 +68,7 @@ public PenOptions(Brush strokeFill, float strokeWidth, float[] strokePattern)
7068 /// <summary>
7169 /// Gets the stroke pattern.
7270 /// </summary>
73- public float [ ] StrokePattern { get ; }
71+ public float [ ] ? StrokePattern { get ; }
7472
7573 /// <summary>
7674 /// Gets or sets the joint style.
0 commit comments